Jump to content

ADDITIONALMETRICS: Difference between revisions

From EDM2
No edit summary
Line 25: Line 25:
The PANOSE datatype field consists of 10 digits, each of which describes one of up to 16 variations, to allow for quantitative descriptions of the visual properties of the font faces.
The PANOSE datatype field consists of 10 digits, each of which describes one of up to 16 variations, to allow for quantitative descriptions of the visual properties of the font faces.


==Example==
==Example Code==


  typedef struct _ADDITIONALMETRICS {
  typedef struct _ADDITIONALMETRICS {

Revision as of 16:29, 17 August 2017

ADDITIONALMETRICS data structure.

If the font signature type is ADDITIONALMETRICS, additional information is included in the PANOSE datatype.


Type

 ULONG ulIdentity; 
 ULONG ulSize;
 PANOSE panose;

C Declaration Method

typedef

Fields

ulIdentity
ulIdentity (ULONG)

Structure identity code. This must be one (1). This field is not part of the FONTMETRICS structure.

ulSize
ulSize (ULONG)

Structure size in bytes. This must be set to the size of the FOCAMETRICS structure. This field is not part of the FONTMETRICS structure.

panose
panose (PANOSE)

Quantitative descriptions of font faces. The PANOSE datatype field consists of 10 digits, each of which describes one of up to 16 variations, to allow for quantitative descriptions of the visual properties of the font faces.

Example Code

typedef struct _ADDITIONALMETRICS {
        ULONG ulIdentity; /* Structure identity code. */
        ULONG ulSize; /* Structure size in bytes. */
        PANOSE panose; /* Quantitative descriptions of font faces. */
      } ADDITIONALMETRICS;

typedef ADDITIONALMETRICS *PADDITIONALMETRICS;