Skip to content

skia_safe::textlayout::TextStyle::font_metrics brokes in 0.70.0 #934

Answered by pragmatrix
FlysoftBeta asked this question in Q&A
Discussion options

You must be logged in to vote

There were some changes with the default font / typeface (empty since 0.70.0) which I suspect is the underlying cause. I suggest that you use TextStyle::set_typeface(). And to get a the default typeface use FontMgr::new() and FontMgr::legacy_make_typeface(). The strategy here is to be explicit on what font to use, best to deploy one with your app, or query one using the FontMgr::match... functions.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FlysoftBeta
Comment options

Answer selected by FlysoftBeta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #933 on February 11, 2024 09:10.