Better font loading #34
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: canary/canary-rs#34
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, scripts can only load fonts by family name. This means that they do not have access to italicized or bold font faces.
The
script
crates needs a newFontStyle
enum:The ABI's
font_load
function should add new arguments:style: FontStyle
weight: f32
stretch: f32
Canary should then forward this data into the
FontStore
when it loads a new face.See font-kit's font properties docs for more info.