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

How to merge all final glyphs to a new file #9

Open
SuperWangKai opened this issue Aug 29, 2020 · 8 comments
Open

How to merge all final glyphs to a new file #9

SuperWangKai opened this issue Aug 29, 2020 · 8 comments
Labels
bug Something isn't working Merge mode

Comments

@SuperWangKai
Copy link

Hi Aiekick,

Thank you for such a cool tool!

I'm testing a feature to save all final selected fonts to a single .ttf file and generate a header for all the glyph.
In this case, no matter if a source font file in the project is used (i.e. has its glyph(s) selected), since it is a candidate and I may use it next time, a final .ttf should be exported.

I'm not sure if the "Merge" mode is the correct mode in this use case, but the Generator::GenerateFontFile_Merged function returned with error.

@SuperWangKai SuperWangKai changed the title How to merge all final fonts to a new file How to merge all final glyphs to a new file Aug 29, 2020
@aiekick
Copy link
Owner

aiekick commented Aug 30, 2020

Hello,

Thank you

yes, at the moment the blend mode has a big problem, it also crashes on my end every other time.
and when it succeeds, there is a problem with fonts that do not have the same scale. some glyphs are small and some are tall.

for now, it is better to have a font file in subsets, instead of using merge mode.

but you can also help fix this feature via PR or other.
it's complicated to write a TTF file format, especially the GLYF table.
Google's sfntly lib helps a lot, but it's still difficult
for the moment and for several months I will not have time for that

Sorry :)

@SuperWangKai
Copy link
Author

Thank you Aiekick! For this project and the patient explanation. Currently, I'm converting all icons in SVG format into a single ttf file and using ImGuiFontStudio to validate and generate C/C++ header! The workflow works alright. I will open source my scripts if I have other weekend time.

Best regards

@aiekick aiekick added bug Something isn't working Merge mode labels Aug 30, 2020
@SuperWangKai
Copy link
Author

https://github.com/SuperWangKai/iconify2font

Uploaded scripts used to generate font files from iconify (https://github.com/iconify/iconify).

@aiekick
Copy link
Owner

aiekick commented Oct 7, 2020

what is the relation with this post ?

@SuperWangKai
Copy link
Author

@aiekick Please see my last comment.

@aiekick
Copy link
Owner

aiekick commented Oct 7, 2020

i see your last comment but i always dont know the relation with this post. because this stuff is not related ti ImGuiFontStudio
its more like an advertising :) ? is not ?

@SuperWangKai
Copy link
Author

Haha, not really, I really wish this issue got fixed so I don't need to use my temporary scripts for the work around, which is never expected to be a serious project. Additionally, we need colored icons which will be supported by ImguiFontStudio. This tool has project to manage all the icons, which is also a big plus.

@aiekick
Copy link
Owner

aiekick commented Oct 7, 2020

ok haha, nice poject btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Merge mode
Projects
None yet
Development

No branches or pull requests

2 participants