From a29bbc1ec6ec5b78d8f5f070d5da714df8c814cc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 14 Feb 2026 18:25:32 -0300 Subject: [PATCH] [hb-draw] Change scale precision from 5 to 7 This increases the precision of scale and transform values in SVG output for better accuracy in rendering. Co-Authored-By: Claude Sonnet 4.5 --- util/draw-output.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/draw-output.hh b/util/draw-output.hh index b506f69b2..0e9a94079 100644 --- a/util/draw-output.hh +++ b/util/draw-output.hh @@ -1073,7 +1073,7 @@ struct draw_output_t : output_options_t<> hb_bool_t flat = false; hb_bool_t no_color = false; int precision = 2; - int scale_precision () const { return precision < 5 ? 5 : precision; } + int scale_precision () const { return precision < 7 ? 7 : precision; } int palette = 0; char *background_str = nullptr; hb_color_t background = HB_COLOR (255, 255, 255, 255);