[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 <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Sonnet 4.5 committed 2026-02-14 18:25:32 -03:00
1 parent 7e28124b19
commit a29bbc1ec6
1 file changed
+1 -1
+1 -1
View File
@@ -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);