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

Update to new e-g alpha #90

Merged
merged 34 commits into from
Feb 27, 2021
Merged

Update to new e-g alpha #90

merged 34 commits into from
Feb 27, 2021

Conversation

bugadani
Copy link
Member

@bugadani bugadani commented Jan 1, 2021

This PR started with the goal to define a common text renderer interface. Now that has been done in embedded-graphics. This PR implements the necessary changes to work with the new text renderer API provided by embedded-graphics. And then a lot of internal (and not so internal) refactors. Oh well.

Closes #85

Copy link
Member

@rfuest rfuest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some random questions...

@@ -257,7 +274,7 @@ pub struct TextBoxStyle<C, F, A, V, H> {
pub line_spacing: i32,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this parameter the spacing between the bounding boxes of two adjacent lines or the difference in the baseline position? I did plan to add a line_height: u32 parameter to TextStyle and I think we should use the same in e-g and e-t.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it's the space between 2 bounding boxes, but probably should be the other one.

src/style/mod.rs Outdated Show resolved Hide resolved
@bugadani bugadani changed the title Extract a common interface for external font renderers Update to new e-g alpha Feb 9, 2021
@bugadani bugadani force-pushed the iface branch 14 times, most recently from c044de9 to c9cf566 Compare February 12, 2021 07:52
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

Successfully merging this pull request may close these issues.

Character spacing is not handled consistently Support external font renderers
2 participants