Difference between revisions of "Nfont packages"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
==Nfonts packages== | ==Nfonts packages== | ||
− | The [Arts] backend manages fonts using so-called nfonts. | + | The [[Arts]] backend manages fonts using so-called nfonts. |
Nfonts are hand-crafted directories with a plist file and | Nfonts are hand-crafted directories with a plist file and | ||
Line 13: | Line 13: | ||
are tools to help you creating them. One of them is | are tools to help you creating them. One of them is | ||
[http://freshmeat.net/projects/mknfonts/ alexm's mknfonts package]. | [http://freshmeat.net/projects/mknfonts/ alexm's mknfonts package]. | ||
− | |||
==Example== | ==Example== |
Revision as of 10:52, 23 August 2005
Nfonts packages
The Arts backend manages fonts using so-called nfonts.
Nfonts are hand-crafted directories with a plist file and the font files, where the backend can find additional information to the fonts.
System-wide available Nfont directories are usually installed to $GNUSTEP_SYSTEM_ROOT/Library/Fonts/.
Creating a nfont is mainly a trivial task, so there are tools to help you creating them. One of them is alexm's mknfonts package.
Example
A typical nfont folder - in this case System.nfont packaged by Jeff Teunissen (Deek) - looks like this:
System.nfont/ System.nfont/DejaVuSans-Oblique.ttf System.nfont/DejaVuSansCondensed-Oblique.ttf System.nfont/DejaVuSans-Bold.ttf System.nfont/DejaVuSansCondensed-BoldOblique.ttf System.nfont/DejaVuSansCondensed-Bold.ttf System.nfont/FontInfo.plist System.nfont/DejaVuSans.ttf System.nfont/DejaVuSansCondensed.ttf System.nfont/DejaVuSans-BoldOblique.ttf
This is the FontInfo.plist file in that directory:
{ Faces = ( { Files = ( DejaVuSans.ttf ); Name = Book; PostScriptName = DejaVuSans; Weight = 5; Traits = 0; }, { Files = ( "DejaVuSans-Oblique.ttf" ); Name = "Book Oblique"; PostScriptName = "DejaVuSans-Oblique"; Weight = 5; Traits = 1; }, { Files = ( DejaVuSansCondensed.ttf ); Name = "Book Condensed"; PostScriptName = DejaVuSansCondensed; Weight = 5; Traits = 16; }, { Files = ( "DejaVuSansCondensed-Oblique.ttf" ); Name = "Book Condensed Oblique"; PostScriptName = "DejaVuSansCondensed-Oblique"; Weight = 5; Traits = 17; }, { Files = ( "DejaVuSans-Bold.ttf" ); Name = Bold; PostScriptName = "DejaVuSans-Bold"; Weight = 9; Traits = 2; }, { Files = ( "DejaVuSans-BoldOblique.ttf" ); Name = "Bold Oblique"; PostScriptName = "DejaVuSans-BoldOblique"; Weight = 9; Traits = 3; }, { Files = ( "DejaVuSansCondensed-Bold.ttf" ); Name = "Bold Condensed"; PostScriptName = "DejaVuSansCondensed-Bold"; Weight = 9; Traits = 18; }, { Files = ( "DejaVuSansCondensed-BoldOblique.ttf" ); Name = "Bold Condensed Oblique"; PostScriptName = "DejaVuSansCondensed-BoldOblique"; Weight = 9; Traits = 19; } ); }