mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fixed the correction of large text size in svg
This commit is contained in:
@ -442,14 +442,14 @@ namespace SVG
|
||||
|
||||
if (!Equals(0., dFontHeight) && dFontHeight < MIN_FONT_SIZE)
|
||||
{
|
||||
dXScale *= dFontHeight / MIN_FONT_SIZE;
|
||||
dYScale *= dFontHeight / MIN_FONT_SIZE;
|
||||
dXScale *= MIN_FONT_SIZE / dFontHeight;
|
||||
dYScale *= MIN_FONT_SIZE / dFontHeight;
|
||||
dFontHeight = MIN_FONT_SIZE;
|
||||
}
|
||||
else if (!Equals(0., dFontHeight) && dFontHeight > MAX_FONT_SIZE)
|
||||
{
|
||||
dXScale *= MAX_FONT_SIZE / dFontHeight;
|
||||
dYScale *= MAX_FONT_SIZE / dFontHeight;
|
||||
dXScale *= dFontHeight / MAX_FONT_SIZE;
|
||||
dYScale *= dFontHeight / MAX_FONT_SIZE;
|
||||
dFontHeight = MAX_FONT_SIZE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user