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

Support for non-monospace fonts #119

Open
ayousuf23 opened this issue May 20, 2021 · 3 comments
Open

Support for non-monospace fonts #119

ayousuf23 opened this issue May 20, 2021 · 3 comments

Comments

@ayousuf23
Copy link

ayousuf23 commented May 20, 2021

GeonBit.UI needs to support non-monospace fonts. What should be done to support them?

@ayousuf23
Copy link
Author

@RonenNess what needs to be done to support non-monospace fonts?

@RonenNess
Copy link
Owner

Hi @ayousuf23, I'm afraid that would be quite difficult as I do a lot of size calculations based on font size, assuming all characters are equal. You can try setting non mono font and see what breaks, maybe the stuff that would break happen to be elements you don't use.

Bottom line- no idea, but might be complicated.

@BlizzCrafter
Copy link

Just as an idea: there are some programs which generating .xml or .json files of the font containing information like the size of each character. I would go that route and implement this funtionallity into the content pipeline or add a reference to JSON and implement (De-)Serializing methods.

Then it should be easily possible to work with any font in GeonBit.UI.

At least if someone is willing to do the work of course 😜

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

3 participants