Bitmap Distribution Format
Un article de Wikipédia, l'encyclopédie libre.
Cet article est une ébauche concernant l’informatique.
Vous pouvez partager vos connaissances en l’améliorant. (Comment ?).
|
Bitmap Distribution Format abrégé BDF est un format de description de fonte de caractères définie par une image matricielle. Il a été défini par le "X Consortium standard".
Il se définit par une suite de caractères ASCII. Il peut donc être défini par un simple éditeur de texte par exemple le "Bloc note" de Windows.
Sommaire |
[modifier] Mots clés
[modifier] Mots clés généraux
Mot clé | Paramètres | Définition |
---|---|---|
STARTFONT | %version de la police% | Début de la définition |
COMMENT | %texte% | Commentaire |
FONT | %nom% | Nom de la fonte |
SIZE | %dimension du point% %résolution horizontale% %résolution verticale% |
taille |
FONTBOUNDINGBOX | %largeur% %hauteur% %x% %y% |
Boîte entourant la police |
STARTPROPERTIES | %nombre de propriétés% | Début de la définition des propriétés |
ENDPROPERTIES | Fin de la définition des propriétés | |
CHARS | %nombre de caractères% | Début de la définition des caractères |
ENDFONT | Fin de la définition |
[modifier] Liste des propriétés
Propriété | Paramètres | Définition |
---|---|---|
FOUNDRY | %texte% | Créateur |
FAMILY | %texte% | famille |
WEIGHT_NAME | %texte% | type de poids (gras,...) |
SLANT | %texte% | |
SETWIDTH_NAME | %texte% | Type de largeur |
ADD_STYLE_NAME | ||
PIXEL_SIZE | %nombre% | taille en pixels |
POINT_SIZE | %nombre% | taille en points |
RESOLUTION_X | %nombre% | |
RESOLUTION_Y | %nombre% | |
SPACING | %nombre% | nombres de pixels entre caractères |
AVERAGE_WIDTH | %nombre% | largeur moyenne |
CHARSET_REGISTRY | %texte% | Type de table de caractère (ISO 8859) |
CHARSET_ENCODING | %nombre% | Type de codage |
MIN_SPACE | %nombre% | Fin de la définition |
FONT_ASCENT | %nombre% | partie ascendante |
FONT_DESCENT | %nombre% | partie descendante |
COPYRIGHT | %texte% | Copyright |
NOTICE | %texte% | Notice |
[modifier] Définition d'un caractère
Propriété | Paramètres | Définition |
---|---|---|
STARTCHAR | %nom du caractère% | Début de la définition du caractère |
SWIDTH | %texte% | |
BBX | %texte% | |
ATTRIBUTES | %Nombre hexadecimal% | |
BITMAP | %texte% | Début de la définition des pixels |
Nombre hexadecimal | exemple: 0380 => 0000 0011 1000 0000 |
Ligne horizontale d'un caractère |
ENDCHAR | %texte% | Fin de la définition du caractère |
[modifier] Exemple de codage pour une police comprenant les caractères "j" et "quoteright"
STARTFONT 2.1 COMMENT This is a sample font in 2.1 format. FONT -Adobe-Helvetica-Bold-R-Normal--24-240-75-75-P-65-ISO8859-1 SIZE 24 75 75 FONTBOUNDINGBOX 9 24 -2 -6 STARTPROPERTIES 19 FOUNDRY "Adobe" FAMILY "Helvetica" WEIGHT_NAME "Bold" SLANT "R" SETWIDTH_NAME "Normal" ADD_STYLE_NAME "" PIXEL_SIZE 24 POINT_SIZE 240 RESOLUTION_X 75 RESOLUTION_Y 75 SPACING "P" AVERAGE_WIDTH 65 CHARSET_REGISTRY "ISO8859" CHARSET_ENCODING "1" MIN_SPACE 4 FONT_ASCENT 21 FONT_DESCENT 7 COPYRIGHT "Copyright (c) 1987 Adobe Systems, Inc." NOTICE "Helvetica is a registered trademark of Linotype Inc." ENDPROPERTIES CHARS 2 STARTCHAR j ENCODING 106 SWIDTH 355 0 DWIDTH 8 0 BBX 9 22 -2 -6 BITMAP ENDCHAR 0380 0380 0380 0380 0000 0700 0700 0700 0700 0E00 0E00 0E00 0E00 0E00 1C00 1C00 1C00 1C00 3C00 7800 F000 E000 ENDCHAR STARTCHAR quoteright ENCODING 39 SWIDTH 223 0 DWIDTH 5 0 BBX 4 6 2 12 ATTRIBUTES 01C0 BITMAP 70 70 70 60 E0 C0 ENDCHAR ENDFONT
[modifier] Copyright
© 1984, 1987, 1988 Adobe Systems, Inc. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation.
[modifier] Liens externes
- (en) Description