Update README.md

This commit is contained in:
nopnop2002 2024-09-11 08:30:48 +09:00
parent 04ad8a6a41
commit d36aa56c96

View File

@ -105,7 +105,7 @@ ________,________,________,
# Font bounding box and character bounding box
BDF font file has a font bounding box (FONTBOUNDINGBOX).
This shows that the origin of the font is X=-3, Y=-6.
This indicates that there is a 6 pixel margin below the font.
```
FONTBOUNDINGBOX 21 26 -3 -6
```
@ -158,6 +158,42 @@ BITMAP
ENDCHAR
```
Fonts that take character bounding box (BBX) and font bounding box (FONTBOUNDINGBOX) into consideration change as follows.
```
STARTCHAR d
ENCODING 100
SWIDTH 574 0
DWIDTH 10 0
BBX 9 12 0 0
BITMAP
00
00
00
00
00
00
00
07
03
03
03
1F
33
63
63
63
63
33
1D8
00
00
00
00
00
00
ENDCHAR
```
Both the font bounding box (FONTBOUNDINGBOX) and the character bounding box (BBX) determine the display position.
This image takes into account the font bounding box (FONTBOUNDINGBOX) and character bounding box (BBX).
```