From: zhaohs <[EMAIL PROTECTED]>
> Now,I also puzzled by the the followinf things:
> When I use the script subfonts.pe within the Cjk-current
> package,which you have told me,to generate the subfonts of
> Sun-ExtA.ttf and Sun-ExtB.ttf,I can get the *.enc,*.afm,*.tmf
> and *.pfb files,but why the Sun-ExtA.ttf and the Sun-ExtB.ttf
> both can generate the following four files with the same name:
> sunext00.afm,sunext00.enc,sunext00.pfb.sunext00.tfm.
> Yor told me to delete the four files that generated from
> Sun-ExtB.ttf, and use the four files that are generated from
> Sun-ExtA.ttf,why?
> I also wonder that though the four files are with the same name,
> they are different subfonts,why can we delete them arbitrarily?
You don't delete them arbitrarily. Have a look at the
Sun-Ext{A,B}.ttf fonts, either with Fontforge itself (requires a *LOT*
of memory) or with gfontview (which is very fast, and shows plane per
plane; switch anti-alias on), and you'll see what I mean.
Now it's pretty simple why they get the same name: you gave "sunext"
as one of the arguments of the fontforge command when processing both
fonts. Usually, when you compile two fonts, each font should have its
own name, obviously. But apparently Sun Haifeng decided to split one
font into two fonts.
Fonts A and B have a 00 plane, but A has a lot of other scripts
besides Chinese. Just have a look at it with gfontview or fontforge
if you don't believe me. The B font only has a handful of ASCII
characters and the rest are Chinese characters from Extension B.
So keep the 00 plane of font A, and remove the one from font B.
> Furthmore,why the subfonts.pe will generate the files with the
> same name on 00 plane,is this a deficiency of the subfonts.pe or
> the original fonts have problems?If I use the script to generate
> subfonts for other coding such as GBK, will the same thing happen
> or not?
LoL! That's certainly *not* a deficiency of subfonts.pe. If there's
one deficiency, then it would be Sun Haifeng's fonts since it is split
into two fonts. Normally TrueType Fonts only have *one* TTF (there
can be more fonts for the different variants). So there's nothing
wrong with the Fontforge script. Why is deleting the 00 plane of the
B font so problematic for you? o_O?
I didn't try to convert it yet to the GBK encoding. You can try to
create subfonts using the GBK encoding yourself. You might also try
to use "virtual fonts": they use the Unicode fonts but use the GBK
codes.
Have a look at the uni2sfd.pl Perl file. For more information, view
the Perl files and have a look at the files in doc/.
Cheers
Danai SAE-HAN
韓達耐
--
題目:《無題》
作者:晏殊(991-1055)
油壁香車不再逢,峽云無跡任西東。
梨花院落溶溶月,柳絮池塘淡淡風。
几日寂寥傷酒后,一番蕭瑟禁煙中。
魚書欲寄何由達,水遠山長處處同。
_______________________________________________
Cjk maillist - [email protected]
http://lists.ffii.org/mailman/listinfo/cjk