fontsrv: use 64 chars per subfont instead of 256
Makes loading faster, and makes larger sizes not too wide. Change-Id: I076c83fdb9577c1e596de45558f38ea93e3a2a31 Reviewed-on: https://plan9port-review.googlesource.com/1360 Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
parent
a78b1841be
commit
775cb933ec
4 changed files with 14 additions and 9 deletions
|
|
@ -86,7 +86,7 @@ load(XFont *f)
|
|||
for(charcode=FT_Get_First_Char(face, &glyph_index); glyph_index != 0;
|
||||
charcode=FT_Get_Next_Char(face, charcode, &glyph_index)) {
|
||||
|
||||
int idx = charcode>>8;
|
||||
int idx = charcode/SubfontSize;
|
||||
|
||||
if(charcode > 0xffff)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue