Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing Czech characters #396

Closed
Tracked by #398
galloj opened this issue Jan 17, 2025 · 4 comments
Closed
Tracked by #398

Missing Czech characters #396

galloj opened this issue Jan 17, 2025 · 4 comments

Comments

@galloj
Copy link

galloj commented Jan 17, 2025

The font doesn't have the following diacritic Czech characters:

čďěňřšťůýž
ČĎĚŇŘŠŤŮÝŽ

I wonder if it would be a good idea to export all the available characters in the font or if it is not worth it because of the size.

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƒƠơƯưǰǺǻǼǽǾǿȘșȚțȷʼˆˇˉ˘˙˚˛˜˝˳΄΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϑϒϖЀЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяѐёђѓєѕіїјљњћќѝўџѠѡѢѣѤѥѦѧѨѩѪѫѬѭѮѯѰѱѲѳѴѵѶѷѸѹѺѻѼѽѾѿҀҁ҂ҊҋҌҍҎҏҐґҒғҔҕҖҗҘҙҚқҜҝҞҟҠҡҢңҤҥҦҧҨҩҪҫҬҭҮүҰұҲҳҴҵҶҷҸҹҺһҼҽҾҿӀӁӂӃӄӅӆӇӈӉӊӋӌӍӎӏӐӑӒӓӔӕӖӗӘәӚӛӜӝӞӟӠӡӢӣӤӥӦӧӨөӪӫӬӭӮӯӰӱӲӳӴӵӶӷӸӹӺӻӼӽӾӿԀԁԂԃԄԅԆԇԈԉԊԋԌԍԎԏԐԑԒԓḀḁḾḿẀẁẂẃẄẅẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặẸẹẺẻẼẽẾếỀềỂểỄễỆệỈỉỊịỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợỤụỦủỨứỪừỬửỮữỰựỲỳỴỵỶỷỸỹὍ           ​–—―‗‘’‚‛“”„†‡•…‰′″‹›‼⁄⁰⁴⁵⁶⁷⁸⁹ⁿ₣₤₧₫€℅ℓ№℠™Ω℮⅛⅜⅝⅞⇧∂∆∏∑−√∞∫≈≠≤≥⌘⌥◊fffiflffiffl�
@kotcrab
Copy link
Owner

kotcrab commented Jan 27, 2025

It could be added, if you need independent solution you can load your own font.

As for all characters, probably not, at that point you can use gdx-freetype.

@galloj
Copy link
Author

galloj commented Jan 28, 2025

I had already started using my own font. But I had seen #264 and I wasn't sure how it is determined whether a given language alphabet is or isn't supported. So, I created this issue in the hope of avoiding the need for a custom font for anyone else who might want to use the Czech language in the future. Additionally, I thought this issue could be used to clarify whether only certain alphabets will be supported or if all languages (supported by the font) will be supported.

@kotcrab
Copy link
Owner

kotcrab commented Jan 28, 2025

But I had seen #264 and I wasn't sure how it is determined whether a given language alphabet is or isn't supported.

I'm sorry but I don't really remember, the font was last modified 8 years ago. I guess I added common scripts which had reasonable number of characters + whatever was requested. Bad practice not documenting what languages are actually supported. I think this can be done before the next release but with this library being in maintenance mode I can't say when it will happen.
Unfortunate that using ttf fonts isn't simpler in libGDX, bitmap fonts are pretty bad developer experience for UI.

@kotcrab kotcrab mentioned this issue Jan 28, 2025
7 tasks
@kotcrab
Copy link
Owner

kotcrab commented Jan 30, 2025

Added, but there's a side effect to re-rendering the font:

This required re-rendering the font, it was last done 8 years ago. I'm pretty sure I used same Hiero version as before,
but I'm guessing newer JDK has some changes. Font baseline is affected by this, but I think it looks better now.
Your UI will have slightly different paddings

Old:
Image

New:
Image

Slight difference but seems to look better now, e.g.:

Old:
Image

New:
Image

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants