Nfont packages
Jump to navigation
Jump to search
Nfonts packages
The [Arts] backend manages fonts using so-called nfonts. link title
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_ROOT/System/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/fonts.cache-1 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; } ); }