B2021-133 BNPP Alarms - The ReplaceWords in pagelist is not restoring the font size after doing a superscript or subscript. Needed to reset the font size when the superscript or subscript is turned off.
This commit is contained in:
parent
0d27bd68e5
commit
bcc2fb7378
@ -749,7 +749,13 @@ namespace Volian.Svg.Library
|
|||||||
fontUnderline = false;
|
fontUnderline = false;
|
||||||
else if (m.Value.Contains(@"\ul"))
|
else if (m.Value.Contains(@"\ul"))
|
||||||
fontUnderline = true;
|
fontUnderline = true;
|
||||||
if (m.Value.Contains(@"\up0") || m.Value.Contains(@"\dn0")) fontTextRise = 0;
|
if (m.Value.Contains(@"\up0") || m.Value.Contains(@"\dn0"))
|
||||||
|
{
|
||||||
|
fontTextRise = 0;
|
||||||
|
// B2021-133 need to reset the font size after doing a compressed super or sub script
|
||||||
|
if (CompressSuper || CompressPropSubSup || CompressSub)
|
||||||
|
font = FontFactory.GetFont(font.Familyname, BaseFont.IDENTITY_H, BaseFont.EMBEDDED, fontSize, fontStyle, new Color(FillColor)); ;
|
||||||
|
}
|
||||||
else if (m.Value.Contains(@"\up"))
|
else if (m.Value.Contains(@"\up"))
|
||||||
{
|
{
|
||||||
fontTextRise = .25F;
|
fontTextRise = .25F;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user