You've already forked lazarus-ccr
ChemText: Simplify superscript character offset calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7977 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -27,7 +27,7 @@ uses
|
||||
const
|
||||
DEFAULT_SMALLFONT_SIZE = 67;
|
||||
DEFAULT_SUBSCRIPT_OFFSET = 50;
|
||||
DEFAULT_SUPERSCRIPT_OFFSET = 25;
|
||||
DEFAULT_SUPERSCRIPT_OFFSET = 12;
|
||||
|
||||
var
|
||||
SmallFontSizePercent: Integer = DEFAULT_SMALLFONT_SIZE;
|
||||
@ -207,7 +207,7 @@ var
|
||||
ACanvas.Font.Height := MulDiv(h, SmallFontSizePercent, 100);
|
||||
yoff := abs(MulDiv(h, SuperscriptFontOffsetPercent, 100));
|
||||
if not Measure then
|
||||
ACanvas.TextOut(x, y - yoff div 2, s);
|
||||
ACanvas.TextOut(x, y - yoff, s);
|
||||
inc(x, ACanvas.TextWidth(s));
|
||||
finally
|
||||
ACanvas.Font.Height := h;
|
||||
|
Reference in New Issue
Block a user