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

Atlas repeated unknown character #220

Open
Quetzalfir opened this issue Jun 9, 2020 · 3 comments
Open

Atlas repeated unknown character #220

Quetzalfir opened this issue Jun 9, 2020 · 3 comments

Comments

@Quetzalfir
Copy link

Quetzalfir commented Jun 9, 2020

I can notice that in the demo distance-field.c, if I set some new characters that are not representable, there are multiple box repeated in the atlas, does this happens only in the demo as a way of representing the unknown character?, or the library does save the glyph repeatedly?
Screenshot_2020-06-09_16-29-17

in the case it saves memory, how can I create an atlas with the unknown glyphs pointing to the same region of the atlas?, avoiding the repeating situation.

@rougier
Copy link
Owner

rougier commented Jun 10, 2020

They are not supposed to be here and means the demo failed at getting the proper glyph. What is the font ?

@Quetzalfir
Copy link
Author

it's the same one that is in the demo "Vera.ttf". I just added some new extended ascii characters to it. It seems that cannot represent all of the characters, so it put the same box repeatedly

@rougier
Copy link
Owner

rougier commented Jun 15, 2020

IF those glyphs are present within the font, it's probably a bad access to the charcode (I may use directly the letter code while you need an indirection through a freetype function). Can you check other demos to check if the problem is also present?

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

2 participants