Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Consider adding support for OTF OpenType fonts #5

Open
mdtauk opened this issue Jan 10, 2025 · 1 comment
Open

Consider adding support for OTF OpenType fonts #5

mdtauk opened this issue Jan 10, 2025 · 1 comment

Comments

@mdtauk
Copy link

mdtauk commented Jan 10, 2025

Whilst exploring using the font tool to generate Japanese font textures, I am running into an issue where modern OpenType fonts use opentype features to support Half Width characters, is required to fully cover all the characters needed for Japanese font replacement.

I can also see it being an issue should modders want to add language support for non Latin alphabets in the future.

@mdtauk
Copy link
Author

mdtauk commented Jan 10, 2025

For implementation, you could maybe parse the codepoints txt file, with comments like

# Opentype --HalfWidth
A
B
C
D
E
...
# Opentype End

Just to clarify, the HalfWidth use the same codepoints as the FullWidth glyphs, except you turn on an OpenType feature and it substitutes the glyphs for the half width ones. So to generate these half width texture images, you would need to activate the feature, and add those same characters to the TXT file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant