Board index » delphi » Correct formula for subscript/superscript text...

Correct formula for subscript/superscript text...

Hi, all !!!

Does anybody know a correct formula to calculate subscript/superscript font
size and Y-offset based on given font size. Some kind of universal formula
which MS Word or Adobe Pagemaker / InDesign using.

Thank you.

--
Sorry for terrible english.
Sergey Prilutsky.
mail: pser...@hotmail.com (please do not email files larger then 128Kb)
Moscow. Russia.

 

Re:Correct formula for subscript/superscript text...


On Fri, 22 Oct 1999 04:44:07 +0400, "Sergey Prilutsky"

Quote
<pser...@hotmail.com> wrote:
>Does anybody know a correct formula to calculate subscript/superscript font
>size and Y-offset based on given font size. Some kind of universal formula
>which MS Word or Adobe Pagemaker / InDesign using.

There isn't a universal formula, but for TrueType fonts, you can use
GetOutlineTextMetrics to get information on suggested sub/superscript
sizes and positions. The suggestions are provided by the font
designer.

-Steve

Re:Correct formula for subscript/superscript text...


Thank you.

--
Sorry for terrible english.
Sergey Prilutsky.
mail: pser...@hotmail.com (please do not email files larger then 128Kb)
Moscow. Russia.

Other Threads