wxPdfDocument 1.2.0
|
ShowFont can be used to generate font samples in PDF form showing the Unicode coverage of the font similar in appearance to the Unicode charts. The concept of this application is based on FntSample, developed by Eugeniy Meshcheryakov for use with DejaVu Fonts project, but the code is written from scratch in C++ using wxWidgets and wxPdfDocument.
showfont -f FONTFILE -o OUTPUTFILE [-n FONTINDEX] [-e ENCODING] [-i RANGES] [-x RANGES]
showfont { -h | –help }
-f FONTFILE | The font file for which a sample should be generated. It can be the name of a TrueType, OpenType or Type1 font file, but wxPdfDocument's font description files are supported, too. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-o OUTFILE | The name of the file to which the PDF output is written.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-n INDEX | The index of the font within the FONTFILE in case of TrueType Collections (.ttc) which contain multiple fonts. By default font with index 0 is used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-e ENCODING | the font encoding of the font.
The encoding defines the association between a code (from 0 to 255) and an Unicode character. The first 128 are fixed and correspond to ASCII; the next 128 are variable. The following encodings are supported by ShowFont:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-i RANGES | Show character codes in RANGES. (see Ranges) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-x RANGES | Don't show character codes in RANGES. (see Ranges) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-h | –help | Display a usage information and exit. |
The parameter RANGES for -i (–include-range) and -x (–exclude-range) can be given as a list of one or more ranges delimited by a comma (,).
Each range can be given as a single integer or a pair of integers delimited by minus sign (-).
Integers can be specified in decimal, hexadecimal (0x...) or octal (0...) format.
One integer of a pair can be omitted (-N specifies all characters with codes less or equal to N, and N- all characters with codes greater or equal to N).
Character code cells can have one of several background colours:
white
= the character code is present in the font, light grey
= the character code is defined in Unicode but not present in the font, blue-grey
= the character code is a control character, dark grey
= the character code is not defined in Unicode.Show all character codes of myfont.ttf in output file myfont.pdf:
showfont -f myfont.ttf -o myfont.pdf
Show all character codes of myfont.ttf less than or equal to U+05FF but exclude U+0300-U+036F in output file myfont.pdf:
showfont -f myfont.ttf -o myfont.pdf -i -0x05FF -x 0x0300-0x036F