Skip to content

Commit e5bf923

Browse files
mike-wardclaude
andcommitted
fix: recalibrate inline math scale divisor for vglyph scale_factor fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ab98303 commit e5bf923

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

view_rtf_xtra.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn (rt RichText) to_vglyph_rich_text_with_math(cache &BoundedDiagramCache) vglyp
9494
// Scale pixel dims to points, then match
9595
// surrounding text size
9696
edpi := if entry.dpi > 0 { entry.dpi } else { f32(200.0) }
97-
scale := (f32(72.0) / edpi) * (run.style.size / f32(6.0))
97+
scale := (f32(72.0) / edpi) * (run.style.size / f32(12.0))
9898
vg_runs << vglyph.StyleRun{
9999
text: run.text
100100
style: vglyph.TextStyle{

0 commit comments

Comments
 (0)