Skip to content

Commit

Permalink
use en_US to decide metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
medicalwei committed Jun 19, 2021
1 parent 73d348a commit 42b1b5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ struct FontMetrix {

impl FontMetrix {
pub fn new(pango_context: pango::Context, line_space: i32) -> Self {
let font_metrics = pango_context.get_metrics(None, None).unwrap();
let font_metrics = pango_context
.get_metrics(None, Some(&pango::Language::from_string("en_US")))
.unwrap();
let font_desc = pango_context.get_font_description().unwrap();

FontMetrix {
Expand Down

0 comments on commit 42b1b5d

Please sign in to comment.