GetFontMetrics
字型
描述
取得所選字型的參數
語法
Delphi
Function TPDFlib.GetFontMetrics(MetricType: Integer): Integer;
ActiveX
Function PDFlib::GetFontMetrics(MetricType As Long) As Long
DLL
int DLGetFontMetrics(int InstanceID, int MetricType);
參數
| MetricType | 1:FontAscent,2:FontDescent,3:FontInternalLeading,4:FontExternalLeading,5:EM 方格,6:平均字元寬度 |
|---|
傳回值
傳回 MetricType 選取的字型度量值;未選取字型時傳回 0