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

Add/finish the text/font metrics system #6

Closed
boydm opened this issue Sep 7, 2018 · 1 comment
Closed

Add/finish the text/font metrics system #6

boydm opened this issue Sep 7, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@boydm
Copy link
Collaborator

boydm commented Sep 7, 2018

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.

@boydm boydm self-assigned this Sep 7, 2018
@boydm boydm added the enhancement New feature or request label Sep 7, 2018
boydm added a commit that referenced this issue Sep 17, 2018
Added Makefile for Windows (10)

Thank you!
@boydm
Copy link
Collaborator Author

boydm commented Mar 19, 2019

Now in master. Going out in v.10

@boydm boydm closed this as completed Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant