Difference between revisions of "Nfont packages"
Jump to navigation
Jump to search
| Line 57: | Line 57: | ||
Name = Regular; | Name = Regular; | ||
PostScriptName = ArialMT; | PostScriptName = ArialMT; | ||
| − | + | RenderHints_hack = 0x0002; | |
Traits = 0; | Traits = 0; | ||
Weight = 5; | Weight = 5; | ||
| Line 70: | Line 70: | ||
Name = Italic; | Name = Italic; | ||
PostScriptName = "Arial-ItalicMT"; | PostScriptName = "Arial-ItalicMT"; | ||
| − | + | RenderHints_hack = 0x0002; | |
Traits = 1; | Traits = 1; | ||
Weight = 5; | Weight = 5; | ||
| Line 83: | Line 83: | ||
Name = Bold; | Name = Bold; | ||
PostScriptName = "Arial-BoldMT"; | PostScriptName = "Arial-BoldMT"; | ||
| − | + | RenderHints_hack = 0x0002; | |
Traits = 2; | Traits = 2; | ||
Weight = 9; | Weight = 9; | ||
| Line 96: | Line 96: | ||
Name = "Bold Italic"; | Name = "Bold Italic"; | ||
PostScriptName = "Arial-BoldItalicMT"; | PostScriptName = "Arial-BoldItalicMT"; | ||
| − | + | RenderHints_hack = 0x0002; | |
Traits = 3; | Traits = 3; | ||
Weight = 9; | Weight = 9; | ||
| Line 109: | Line 109: | ||
Name = Black; | Name = Black; | ||
PostScriptName = "Arial-Black"; | PostScriptName = "Arial-Black"; | ||
| − | + | RenderHints_hack = 0x0002; | |
Traits = 2; | Traits = 2; | ||
Weight = 12; | Weight = 12; | ||
Revision as of 10:58, 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 Arial.nfont packaged by Jeff Teunissen (Deek) - looks like this:
Arial.nfont/ Arial.nfont/ariali.ttf Arial.nfont/arial.ttf Arial.nfont/arialbi.ttf Arial.nfont/arialbd.ttf Arial.nfont/FontInfo.plist Arial.nfont/arialblk.ttf
This is the FontInfo.plist file in that directory:
{
Description = "Monotype Arial, WGL4 Character Set";
Faces = (
{
Files = (
arial.ttf
);
LocalizedNames = {
Basque = Arrunta;
Catalan = Normal;
Danish = normal;
Dutch = Standaard;
English = Regular;
Finnish = Normaali;
French = Normal;
Germany = Standard;
Hungarian = "Norm\u00e1l";
Italian = Normale;
Norwegian = Normal;
Polish = Normalne;
Portuguese = Normal;
Slovak = "Norm\u00e1lne";
Slovene = Navadno;
Spanish = Normal;
Swedish = Normal;
Turkish = Normal;
};
Name = Regular;
PostScriptName = ArialMT;
RenderHints_hack = 0x0002;
Traits = 0;
Weight = 5;
},
{
Files = (
ariali.ttf
);
LocalizedNames = {
English = Italic;
};
Name = Italic;
PostScriptName = "Arial-ItalicMT";
RenderHints_hack = 0x0002;
Traits = 1;
Weight = 5;
},
{
Files = (
arialbd.ttf
);
LocalizedNames = {
English = Bold;
};
Name = Bold;
PostScriptName = "Arial-BoldMT";
RenderHints_hack = 0x0002;
Traits = 2;
Weight = 9;
},
{
Files = (
arialbi.ttf
);
LocalizedNames = {
English = "Bold Italic";
};
Name = "Bold Italic";
PostScriptName = "Arial-BoldItalicMT";
RenderHints_hack = 0x0002;
Traits = 3;
Weight = 9;
},
{
Files = (
arialblk.ttf
);
LocalizedNames = {
English = Black;
};
Name = Black;
PostScriptName = "Arial-Black";
RenderHints_hack = 0x0002;
Traits = 2;
Weight = 12;
}
);
FontCopyright = "Typeface \u00a9 The Monotype Corporation plc.\nData \u00a9 The Monotype Corporation plc/Type Solutions Inc. 1990-1992.\nAll Rights Reserved";
Foundry = "Monotype Typography";
Packager = "Jeff Teunissen <deek@d2dc.net>";
Version = 2.82;
}