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

Text size functions will report improper height #49

Open
matejdro opened this issue Oct 15, 2013 · 0 comments
Open

Text size functions will report improper height #49

matejdro opened this issue Oct 15, 2013 · 0 comments

Comments

@matejdro
Copy link

This applies to both text_layer_get_max_used_size() and graphics_text_layout_get_max_used_size().

Those functions will return slightly smaller height, resulting in minor cuts such as bottom of letter g:

dsc_0049

This code was used to generate above image:

GSize titleSize = text_layer_get_max_used_size(app_get_current_graphics_context(), &title);
text_layer_set_size(&title, titleSize);

User fugounashi did some research of that issue in this thread: http://forums.getpebble.com/discussion/7147/text-layer-padding

Amount cut is not static (bigger fonts will be cut more).

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

1 participant