previous   Text StyleFont Size   next


Font Family

Use Edit->Text->Font Style->Family... to change just the font family for selected . To change the current font family to apply to new text areas, use Settings->Styles... and select the tab labeled Font.

The labeled Font Family (see Figure 9.15) provides a list of locally available fonts. You can select the required font from this list.

Figure 9.15: Setting the Font Family
Image annoteFontFamily.png

When you select a font family, Jpgfdraw guesses at the appropriate LaTeX font family declaration. This is used if you save your image as a LaTeX file. If Jpgfdraw has guessed incorrectly, you can select a different command from the on the right, or you can edit it if you require a font family declaration that is not listed. Alternatively you can clear the value (by deleting the family declaration) to use the current document font family.

Note that Jpgfdraw only guesses at a LaTeX alternative when you select a new font family from the Font Family . If there is a particular mapping that you always want, you can create a file called latexfontmap9.1 in Jpgfdraw's configuration directory . Each line in this file should be in the form:

<font name>=<LaTeX declaration>

where <font name> is the name of the font family (e.g. URW Chancery L) and <LaTeX declaration> is the code9.2 used to set the font in a LaTeX document. Blank lines or lines starting with a hash (#) are ignored. For example, on my laptop I have the font "URW Chancery L". If I select this font, the LaTeX equivalent will default to \rmfamily. However, it would be more appropriate for the LaTeX declaration to select the PSNFSS chancery font. Therefore, I can use my favorite text editor to create a file called latexfontmap with the line

URW Chancery L=\fontfamily{pzc}\selectfont
and save it in Jpgfdraw's configuration directory. Next time I start Jpgfdraw, it will load this mapping and use it whenever I select "URW Chancery L" from the font name selector. Alternatively, you can use a regular expression. For example:
.*[Cc]hancery.*=\fontfamily{pzc}\selectfont
This will select \fontfamily{pzc}\selectfont for any font that contains either "Chancery" or "chancery" in its name. It is however faster to use the exact name.

See also:



Footnotes

...latexfontmap9.1
Note that the file latexfontmap does not have an extension, so be careful if your text editor automatically appends an extension (such as .txt).
... code9.2
This code should be in the form of a declaration (sets the font "from this point onwards") not a text block command (a command that sets its argument in the given font).

previous   Text StyleFont Size   next