You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful for the scene to be able to obtain the metrics (width, height, etc) of a string of text before it gets rendered. For example, the Button component could use this to automatically size the button to fit the string. Any future (optional) layout engine would also need it.
This should NOT parse fonts at runtime. Interpreting fonts should remain the purview of the Drivers. In the future I want to support other font types than *.ttf and the core Scenic library should not have a dependency on that format.
Instead, I want to back the font metric information into separate format offline that can be easily loaded and inspected by a scene. No C code should be invoked at that time. This work is under way, but has been lower priority as most (all) scenes so far simply don't need it.
The text was updated successfully, but these errors were encountered:
It would be useful for the scene to be able to obtain the metrics (width, height, etc) of a string of text before it gets rendered. For example, the Button component could use this to automatically size the button to fit the string. Any future (optional) layout engine would also need it.
This should NOT parse fonts at runtime. Interpreting fonts should remain the purview of the Drivers. In the future I want to support other font types than *.ttf and the core Scenic library should not have a dependency on that format.
Instead, I want to back the font metric information into separate format offline that can be easily loaded and inspected by a scene. No C code should be invoked at that time. This work is under way, but has been lower priority as most (all) scenes so far simply don't need it.
The text was updated successfully, but these errors were encountered: