New version of stb_truetype.h #976

Closed
opened 2017-01-12 13:09:00 +00:00 by Flix01 · 5 comments
Flix01 commented 2017-01-12 13:09:00 +00:00 (Migrated from github.com)

@ocornut:
Hi, as far as I can see there's a new version of stb_truetype.h with:
1.13 (2017-01-02) support OpenType fonts, certain Apple fonts, num-fonts-in-TTC function

Is there some specific reason not to update to the new version (does Dear ImGui use a custom version) ?

@ocornut: Hi, as far as I can see there's a new version of [stb_truetype.h](https://github.com/nothings/stb/blob/master/stb_truetype.h) with: _1.13 (2017-01-02) support OpenType fonts, certain Apple fonts, num-fonts-in-TTC function_ Is there some specific reason not to update to the new version (does Dear ImGui use a custom version) ?
ocornut commented 2017-01-12 13:40:30 +00:00 (Migrated from github.com)

It's not custom anymore, it could be updated.

It's not custom anymore, it could be updated.
Flix01 commented 2017-01-12 15:36:19 +00:00 (Migrated from github.com)

Good to know.

If I need to use .otf fonts, I'll do it.

Good to know. If I need to use .otf fonts, I'll do it.
itamago commented 2017-02-25 09:34:13 +00:00 (Migrated from github.com)

I tried to load .otf files, using latest ImGui, but it generates huge atlas (1024x32768) which obviously is insane :)
The font I'm using is a small one : http://dl.1001fonts.com/glacial-indifference.zip
Am I missing some specific config for OTF support in ImGui ?

I tried to load .otf files, using latest ImGui, but it generates huge atlas (1024x32768) which obviously is insane :) The font I'm using is a small one : http://dl.1001fonts.com/glacial-indifference.zip Am I missing some specific config for OTF support in ImGui ?
ocornut commented 2017-02-25 22:23:20 +00:00 (Migrated from github.com)

I have just updated stb_truetype but not tried the OTF support. Maybe it has issues or limitations. I would suggest trying different fonts and maybe checking the stb github for issues?

I have just updated stb_truetype but not tried the OTF support. Maybe it has issues or limitations. I would suggest trying different fonts and maybe checking the stb github for issues?
itamago commented 2017-02-26 11:46:51 +00:00 (Migrated from github.com)

You're right, I checked the issues on STB github, and the OTF support is mostly working but not with all fonts.
I tried with 2 other OTF fonts and they were loaded with decent dimensions.
So, be careful with otf support for the moment, it's not perfect.

You're right, I checked the issues on STB github, and the OTF support is mostly working but not with all fonts. I tried with 2 other OTF fonts and they were loaded with decent dimensions. So, be careful with otf support for the moment, it's not perfect.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#976
No description provided.