Jelajahi Sumber

LibGfx: Use non-emoji glyph width API to compute the width of a space

Timothy Flynn 2 tahun lalu
induk
melakukan
36a495e87e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Userland/Libraries/LibGfx/Painter.cpp

+ 1 - 1
Userland/Libraries/LibGfx/Painter.cpp

@@ -2492,7 +2492,7 @@ void Painter::draw_text_run(FloatPoint baseline_start, Utf8View const& string, F
     auto pixel_metrics = font.pixel_metrics();
     float x = baseline_start.x();
     float y = baseline_start.y() - pixel_metrics.ascent;
-    float space_width = font.glyph_or_emoji_width(' ');
+    float space_width = font.glyph_width(' ');
 
     u32 last_code_point = 0;