-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add fonts #146
Comments
@nawazawanswl Read the User Guide. |
@nawazawanswl User Guide section 5.7. |
i have gone through the documentation and i am.. |
ok, |
@nawazawanswl One thing I just noticed that I failed to document is that when you add new font family you need to have at least one font size 10 or less in each style. You don't need all styles but say you only have PLAIN (shows as Regular in Builder) inside this folder you need one font size 10 or less. |
oh, that is good know. this can solve but also led to issues. |
anyway its very useful info and will save time while adding fonts. |
thanks, |
@nawazawanswl Thank you for your feedback. I hope to move this issue to discussions once I can get it created. |
@Pconti31 Is there any examples demonstrate how to add category "FONT_SIM"? I read document many times, but with no luck. My target-platform is tft-espi, I want to use smooth font, here is my config: |
@darkbull I can do you one better. I have new builder that will support smoothfonts. Instead of using FONT_SIM we will have FONT_VLW. I This version is setup for google's Noto BOLD. If you want anyother font you will still need to edit the builder_fonts.json but it should be simple to see how to modify it for your new font. Also, you will need to add at least one size 18 or less. Also note that only *.vlw fonts stored in spiffs is supported by GUIslice API. The flash version will crash and burn. I have patch for that but in the meantime stay way from smoothfonts stored in flash. If you are wiling to beta test this new version let me know and I'll post a download link. |
@Pconti31 Thanks for your prompt reply. By reading the source code, I can add FONT_SIM now. This is my config: But there's some problems.
|
happy to try |
@darkbull The Builder problem you have is that it needs to simulate (not use) your desired font. You need to pick one of the Java built-in fonts which limits you to:
If you use my beta 0.16.b6 Builder you copy your truetype font to a sub folder in GUIsliceBuilder/fonts/vlw. Note its a truetype font (the one you used to create your *.vlw files) since the Builder doesn't read or understand vlw format. Once you edit the json file the Builder will use your TrueType font and not use the Java builtin fonts and the generated code will work with GUIslice API. Of course, you will need to create a sub folder called data in your project and load the vlw fonts into spiffs. Or you can just wait until I finish testing 0.16.b006 which should take another week or two before release. One thing I think could still be broken is the character code translations in the generated code so that's what is holding up release. |
@darkbull If you want to help testing I do need to know what version to build, |
Paul, OSX . good job |
@darkbull Ok, here you go. Let me know of any issues or questions. |
Got it. OK, I'll reply feedback in some days. |
@darkbull Ugh! Anyway that's why we do testing! I'll debug as far as I can with what you have already zipped. Maybe we will get luckly. |
@darkbull Sorry, but I used your font and created a single text element in a project I called test-chinese pasting your chinese text string. |
@darkbull Some good news, in manner of speaking. I reproduced the crash using the builder posted. |
@Pconti31 |
@darkbull builder-osx-0.16.b006-SNAPSHOT-0118.zip Hopefully, this will work a little better. Paul-- |
For any bug reports on fonts handling; If you are using a custom font (not the Chinese one already provided) please also zip that along with the edited builder_fonts.json file. |
@Pconti31 Thanks for your grate job and realtime update! I use latest builder(builder-osx-0.16.b006-SNAPSHOT-0118.zip), now working perfectly. |
@nawazawanswl I just noticed you are doing backups by moving your files around. Paul-- |
With the Release 0f 0.16.b006 I'm closing this topic. |
is it possible to add fonts to " C:\Program Files (x86)\GUIsliceBuilder\fonts\gfx "
if so how...............?????
The text was updated successfully, but these errors were encountered: