Glyph Bitmap Distribution Format: Difference between revisions

Content deleted Content added
Since the last revision of this file format is 30 years old. It is not necessary, in my humble opinion, to precise that no new version will be made.
MOS:HEADCAPS
 
(One intermediate revision by one other user not shown)
Line 28:
This is an example font containing one glyph, for ASCII capital “A”. This glyph is taken from the [[GNU Unifont]].
 
{|
|-
|
<nowiki>STARTFONT 2.1
FONT -gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
Line 61 ⟶ 64:
ENDCHAR
ENDFONT</nowiki>
|
<br /><br /><br /><br /><br />
{{Col-begin|class=mw-collapsible mw-collapsed}}
|+'''Decoded hexdraw representation of the example'''
|-
{{Col-2}}
{{sxhl|2=hexdump|
 
 
00 00000000 --------
00 00000000 --------
00 00000000 --------
00 00000000 --------
18 00011000 ---██---
24 00100100 --█--█--
24 00100100 --█--█--
42 01000010 -█----█-
42 01000010 -█----█-
7E 01111110 -██████-
42 01000010 -█----█-
42 01000010 -█----█-
42 01000010 -█----█-
42 01000010 -█----█-
00 00000000 --------
00 00000000 --------
.. ........ .248124.
}}
{{Col-end}}
 
|}
 
In the above example, the global declarations begin with the {{code|STARTFONT}} line and end with the {{code|CHARS}} line.
Line 100 ⟶ 134:
{{code|ENDFONT}} appears as the last line in the file, after all glyphs in the font have been enumerated.
 
==Version 2.2 Extensionsextensions==
Version 2.2 of the BDF specification adds support for non-Western fonts. These additions allow moving the origin by a positive or negative movement on the X and Y axes. This not only accommodates right-to-left writing direction, but even top-to-bottom (for example, for Chinese). The following values provide multinational-font support:
 
Line 115 ⟶ 149:
For more detailed information, consult the version 2.2 specification.
 
==X Window Propertiesproperties==
 
X Window font utilities support several properties that can be specified in the {{code|STARTPROPERTIES}} section of a BDF file.<ref>{{cite book|last=Flowers |first=Jim |title=X Logical Font Description Conventions |orig-year=1988 |url=http://ftp.xfree86.org/pub/XFree86/4.5.0/doc/xlfd.txt |access-date= 2009-01-08 |edition= Version 1.5 |year= 1994 |publisher=X Consortium, Inc. |pages=13 |chapter=3.2 Font Properties |archive-url=https://web.archive.org/web/20130331010913/http://ftp.xfree86.org/pub/XFree86/4.5.0/doc/xlfd.txt |archive-date=2013-03-31}}</ref> A generic BDF file is in [[ASCII]] encoding. X Window properties are specified using [[ISO/IEC 8859-1|ISO 8859-1]] encoding, which is an extension of ASCII. These properties include: