JVCL Help:TJvTextAttributes.Offset

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Specifies the character Offset from the baseline, in points.


Pascal

 propertyOffset: Integer;


Description

Use Offset to specify the character Offset from the baseline in points. If the value of Offset is positive, the character is a superscript; if the value is negative, the character is a subscript.
Alternatively, you can use property SubscriptStyle to specify whether the text is made of subscript and superscript characters. Note (= is equals; ~ is approximation)

1 point = 20 twips. (A twip is a TWenthIeth of a Point)


For printing:

72 points = 1 physical inch.
1440 twips = 1 physical inch.
1 inch ~ 25,40 mm, thus
2,83 points ~ 1 mm
56,7 twips ~ 1 mm


For screen:

72 points ~ 1 logical inch.
1440 twips ~ 1 logical inch.


The relation between a logical inch and a physical inch depends on your monitor/video driver. Windows typically uses 96 pixels per logical inch for small fonts and 120 pixels per logical inch for large fonts. So, if 1 logical inch = 96 pixels, then

1 pixel = 1/96 logical inch ~ 1440/96 twips = 15 twips = 3/4 point.


See Also

TJvTextAttributes.SubscriptStyle


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page