Skip to content

Text size functions will report improper height #49

@matejdro

Description

@matejdro

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions