fonts: Add Japanese FixedSys font.
This commit is contained in:
parent
6eaa345261
commit
c4408e0b62
|
@ -9,6 +9,7 @@
|
||||||
/cvgasys.fon
|
/cvgasys.fon
|
||||||
/hvgasys.fon
|
/hvgasys.fon
|
||||||
/jsmalle.fon
|
/jsmalle.fon
|
||||||
|
/jvgafix.fon
|
||||||
/jvgasys.fon
|
/jvgasys.fon
|
||||||
/smae1255.fon
|
/smae1255.fon
|
||||||
/smae1256.fon
|
/smae1256.fon
|
||||||
|
|
|
@ -12,6 +12,7 @@ BITMAP_FONTS = \
|
||||||
cvgasys.fon \
|
cvgasys.fon \
|
||||||
hvgasys.fon \
|
hvgasys.fon \
|
||||||
jsmalle.fon \
|
jsmalle.fon \
|
||||||
|
jvgafix.fon \
|
||||||
jvgasys.fon \
|
jvgasys.fon \
|
||||||
smalle.fon \
|
smalle.fon \
|
||||||
smallee.fon \
|
smallee.fon \
|
||||||
|
@ -91,6 +92,9 @@ coue1257.fon: courier.ttf
|
||||||
vgafix.fon: fixedsys.ttf
|
vgafix.fon: fixedsys.ttf
|
||||||
$(LDPATH) $(SFNT2FNT) -o $@ -d 128 $(srcdir)/fixedsys.ttf 15,1252,8
|
$(LDPATH) $(SFNT2FNT) -o $@ -d 128 $(srcdir)/fixedsys.ttf 15,1252,8
|
||||||
|
|
||||||
|
jvgafix.fon: fixedsys_jp.ttf
|
||||||
|
$(LDPATH) $(SFNT2FNT) -o $@ -d 128 $(srcdir)/fixedsys_jp.ttf 18,932,8
|
||||||
|
|
||||||
sserife.fon: ms_sans_serif.ttf
|
sserife.fon: ms_sans_serif.ttf
|
||||||
$(LDPATH) $(SFNT2FNT) -o $@ -d 129 $(srcdir)/ms_sans_serif.ttf 13,1252,5 16,1252,7 20,1252,8
|
$(LDPATH) $(SFNT2FNT) -o $@ -d 129 $(srcdir)/ms_sans_serif.ttf 13,1252,5 16,1252,7 20,1252,8
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -432,8 +432,8 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
|
||||||
else if (!strcmp(face->family_name, "Fixedsys"))
|
else if (!strcmp(face->family_name, "Fixedsys"))
|
||||||
il = 3;
|
il = 3;
|
||||||
|
|
||||||
/* Japanese system fonts have an external leading (not small font) */
|
/* Japanese System font has an external leading */
|
||||||
if (enc == 932 && ppem > 11)
|
if (!strcmp(face->family_name, "System") && enc == 932)
|
||||||
el = 2;
|
el = 2;
|
||||||
else
|
else
|
||||||
el = 0;
|
el = 0;
|
||||||
|
@ -529,7 +529,7 @@ static struct fontinfo *fill_fontinfo( const char *face_name, int ppem, int enc,
|
||||||
}
|
}
|
||||||
|
|
||||||
info->hdr.fi.dfAvgWidth = avg_width;
|
info->hdr.fi.dfAvgWidth = avg_width;
|
||||||
info->hdr.fi.dfMaxWidth = max_width;
|
info->hdr.fi.dfMaxWidth = (enc == 932) ? avg_width * 2 : max_width;
|
||||||
info->hdr.fi.dfDefaultChar = def_char - info->hdr.fi.dfFirstChar;
|
info->hdr.fi.dfDefaultChar = def_char - info->hdr.fi.dfFirstChar;
|
||||||
info->hdr.fi.dfBreakChar = ' ' - info->hdr.fi.dfFirstChar;
|
info->hdr.fi.dfBreakChar = ' ' - info->hdr.fi.dfFirstChar;
|
||||||
info->hdr.fi.dfWidthBytes = (width_bytes + 1) & ~1;
|
info->hdr.fi.dfWidthBytes = (width_bytes + 1) & ~1;
|
||||||
|
|
Loading…
Reference in New Issue