fonts: Add Japanese FixedSys font.

oldstable
Akihiro Sagawa 2013-04-08 21:55:08 +09:00 committed by Alexandre Julliard
parent 6eaa345261
commit c4408e0b62
5 changed files with 2309 additions and 3 deletions

1
fonts/.gitignore vendored
View File

@ -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

View File

@ -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

2301
fonts/fixedsys_jp.sfd 100644

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -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;