skip to main content

Library Routines : P$ : P$GETTEXTMETRICS

P$GETTEXTMETRICS
The P$GETTEXTMETRICS library routine retrieves characteristics of the current font.
Syntax 1
 CALL "P$GETTEXTMETRICS" USING textMetrics
Parameters
01 TextMetrics.
  02  TM-Height           pic 9(10Binary(4).
  02  TM-Ascent           pic 9(10Binary(4).
  02  TM-Descent          pic 9(10Binary(4).
  02  TM-InternalLeading  pic 9(10Binary(4).
  02  TM-ExternalLeading  pic 9(10Binary(4).
  02  TM-AveCharWidth     pic 9(10Binary(4).
  02  TM-MaxCharWidth     pic 9(10Binary(4).
  02  TM-WeightValue      pic 9(3Binary(4).
  02  TM-Overhang         pic 9(10Binary(4).
  02  TM-DigitizedAspectX pic 9(10Binary(4).
  02  TM-DigitizedAspectY pic 9(10Binary(4).
  02  TM-ItalicValue      pic x.
  02  TM-UnderlinedValue  pic x.
  02  TM-StruckOutValue   pic x.
  02  TM-FirstChar        pic x.
  02  TM-LastChar         pic x.
  02  TM-DefaultChar      pic x.
  02  TM-BreakChar        pic x.
  02  TM-PitchValue       pic 9 Binary(2).
  02  TM-FamilyValue      pic 9 Binary(2).
  02  TM-CharSetValue     pic 9(3Binary(2).
Note - only these fields are supported:
Syntax 2
 CALL "P$GETTEXTMETRICS" USING settingName1, settingValue1 
Parameters

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left