Font metrics stylesheet


Introduction

This stylesheet offers functions to interact with an XML FOP file metrics. Currently, three types of FOP metrics are supported: WinAnsiEncoding, Type1 font and TTF font. The last one is prefered because the metrics contain more symbol metrics and more precise metrics. WinAnsiEncoding and Type1 files only contain a maximum of 255 metrics.

Table of Contents

findFont — Finds an existing font metrics file for a font name with respect to variants (italic, bold, etc.)
findWidth — Find the width of a character from a list of fonts. The first font of the list that contains the character will be used.
findWidthFile — Find the width of a character from a font metrics file.
findBbox — Find the bounding box of a character from a list of fonts. The first font of the list containing the character will be used.
findBbox — Finds the bounding box of a character from a list of font. The first font of the list that contains the character will be used.
findBboxFile — Finds the bounding box of a character from a font metrics file.
findHeight — Finds height and depth of a string from a list of font by using the bounding box (from metrics) of each character in the string. The first font of the list containing the character will be used.
findHeightAlt — Finds height and depth of a string from a list of font by using the bounding box (from metrics) of each character in the string. The first font of the list containing the character will be used.