mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 00:41:09 +01:00
[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:
1 parent
7e28124b19
commit
a29bbc1ec6
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user