File: BDFgrey.html

package info (click to toggle)
fontforge 1%3A20230101~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 63,260 kB
  • sloc: ansic: 462,618; python: 6,916; cpp: 214; objc: 122; sh: 101; makefile: 55; xml: 11
file content (104 lines) | stat: -rw-r--r-- 4,752 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<HTML>
<HEAD>
  <!-- Created with AOLpress/2.0 -->
  <!-- AP: Created on: 5-Jun-2002 -->
  <!-- AP: Last modified: 2-Mar-2004 -->
  <LINK REL="icon" href="../../_static/fftype16.png">
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!--<TITLE>Extensions to Adobe's Bitmap Distribution Format for greymap (anti-aliased)
  fonts</TITLE> -->
  <TITLE>Adobe のビットマップ配布フォーマット(BDF)のグレイマップ(アンチエイリアス)フォントへの拡張</TITLE>
  <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<DIV id="in">
<H1 ALIGN=Center>
<!--
  Extensions to
  <A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5005.BDF_Spec.pdf">Adobe's
  BDF</A> for greymap fonts -->
  <A HREF="http://partners.adobe.com/asn/developer/PDFS/TN/5005.BDF_Spec.pdf">Adobe の BDF</A> のグレイマップフォントへの拡張
</H1>
<P>
<!--
Adobe has defined a file format for distributing bitmap fonts called BDF.
MicroSoft extended this format to support greymap (anti-aliased, each pixel
representing various levels of grey rather than just black/white) fonts.
Recently others have started using this same format
(<A HREF="http://math.nmsu.edu/~mleisher/Software/gbdfed/">gbdfed</A>,
<A HREF="http://freetype.sf.net/">freetype</A> and
<A HREF="index.html">fontforge</A>). -->
Adobe はビットマップフォントを配布するための、BDF と呼ばれるフォーマットを定義しています。Microsoft はこのフォーマットを、グレイマップ (アンチエイリアス。各ピクセルが白と黒だけでなく、多数の灰色の中間調を表す) フォントをサポートするために拡張しています。最近、この同じフォーマットが他でも
(<A HREF="http://math.nmsu.edu/~mleisher/Software/gbdfed/">gbdfed</A>,
<A HREF="http://freetype.sf.net/">freetype</A> および
<A HREF="index.html">fontforge</A>) で使われ始めています。
<P>
<!--
In Section 3.1 of the format description Adobe defines a "SIZE" keyword.
MicroSoft has added an optional fourth parameter to this keyword<BR> -->
フォーマット記述のセクション 3.1 で Adobe は“SIZE”キーワードを定義しています。Microsoft はこのキーワードに付加的な 4 番目のパラメータを追加しました。<BR>
<BIG><CODE>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZE <I>PointSize XRes YRes
[Bits_Per_Pixel]</I></CODE></BIG><BR>
<!--
This fourth parameter may take the values 1, 2, 4 and 8. If omitted it is
assumed to be 1. (FontForge will also read in fonts with values of 16 and
32, but it will simply ignore any low order data and only retain the high
order byte). -->
この 4 番目のパラメータは 1, 2, 4 および 8 の値を取ることができます。省略した場合は、この値は 1 であると見なされます (FontForge は値 16 および 32 のフォントからも読み込むことができますが、下位のデータは単純に無視され、上位バイトのみを保持します)。
<P>
<!--
FontForge will also include a font property<BR> -->
FontForge はまた、フォント属性<BR>
<BIG><CODE>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BITS_PER_PIXEL
<I>Value</I></CODE></BIG><BR>
<!--
in all greymap fonts it generates. -->
を、生成するすべてのグレイマップフォントに含めます。
<P>
<!--
FontForge will also mark all such fonts as version 2.3 of the bdf standard -->
FontForge はこの種のフォントをすべて BDF 規格のバージョン 2.3 として印づけます。
<BR>
<BIG><CODE>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STARTFONT 2.3</CODE></BIG>
<P>
<!--
The bitmap data are stored with 8, 4, 2 or 1 pixels packed into a byte depending
on whether BITS_PER_PIXEL is 1, 2, 4 or 8. As in Adobe's spec all data are
presented in hex and an even number of nibbles must be present. -->
ビットマップデータは BITS_PER_PIXEL の値が 1, 2, 4 または 8 のいずれであるかに従って、8, 4, 2 または 1 ピクセル分をパックした形式で格納されます。Adobe の仕様書にあるように、すべてのデータは 16 進数で表現され、偶数個のニブルが存在しなければなりません。
<P>
<!--
<B>Example:</B><BR>-->
<B>例:</B><BR>
<CODE>&nbsp; BITMAP<BR>
&nbsp; C8<BR>
&nbsp; ENDCHAR</CODE><BR>
<!--
Would represent the pixel sequences -->
はピクセル列
<TABLE BORDER CELLPADDING="2">
  <TR>
    <TH>Bits/Pixel</TH>
    <TH>Pixels</TH>
  </TR>
  <TR>
    <TH>1</TH>
    <TD>1,1,0,0,1,0,0,0</TD>
  </TR>
  <TR>
    <TH>2</TH>
    <TD>3,0,2,0</TD>
  </TR>
  <TR>
    <TH>4</TH>
    <TD>C,8</TD>
  </TR>
  <TR>
    <TH>8</TH>
    <TD>C8</TD>
  </TR>
</TABLE>
を表します。
<P>
</DIV>
</BODY></HTML>