[to cjk list]

 On Jan 19, 2008 4:45 AM, Werner LEMBERG <[EMAIL PROTECTED]> wrote:
 >
 > > 1. for Unicode support create dgjhwff to do a mapping from the SJIS
 > > dgjhw font.  So I am guessing that means a dgjhwff.tfm and a
 > > dgjhwff.vf, created from an edited version of dgjhw.pl where a
 > > MAPFONT and for each character a MAP entry has been added. I
 > > confirmed that to be the case (see below).
 >
 > Yes.
 >
 > > 2. modify the udmjff.vf and udmjff.tfm to incorporate the half-width
 > > katakana directly, by converting the vf to vpl, editing it, and
 > > creating new vf and tfm files.
 >
 > Yes.
 >
 > > I converted udmjff.vf to pl and checked that the mapping is taking
 > > place as I expected. I also found the encoding as DNPUNICODE, so I
 > > wonder if that means I can use sfd2uni.pl with Unicode.sfd as the
 > > sfd-file and DNPUNICODE as the coding scheme?
 >
 > I don't think so.  Maybe it works, but I have no time to test it.

 OK, I have done the work manually. First I used clonevf. pl to create
 a vf for dgjhw.tfm. I convert the vf to a vpl. Then I changed the
 mapping as follows: the original font should be unicode, and the
 mapping should go to SJIS, so I left the MAP part and changed the
 primary character codepoint. Luckily, the difference is exactly 100
 octal, so it was necessary to decrease only the leading digit by one.

 Now I convert the existing udgjff.{vf,tfm} to vpl and add the above
 data to it (since it was not there efore), and make sure to add a new
 FONTMAP entry referencing dgjhw. All the new chracters must have their
 MAP index set to the index of the new FONTMAP (in this case 2).

 Then I use vptovf to create a udgjff.{vf,tfm} again which now has the
 modified mapping  and copy to wadalab directories for Unicode vf and
 tfm files.

 I am happy to report that this works with my UTF test file, with no
 change of font families :-)

 Now I will correct the sfd file (character alignments) and redo the
 above process using the modified tfm file. I hope I have not forgotten
 something.

 I have one question: in the vf files there is a field called
 FONTCHECKSUM for each referenced font. I do not know where I should
 get that from for the dgjhw font which I reference. The entries look
 now something like the below:

 (MAPFONT D 0
    (FONTNAME dgjsy)
    (FONTCHECKSUM O 37160404056)
    (FONTAT R 1.0)
    (FONTDSIZE R 10.0)
    )
 (MAPFONT D 1
    (FONTNAME dgjroma)
    (FONTCHECKSUM O 12474217137)
    (FONTAT R 1.0)
    (FONTDSIZE R 10.0)
    )
 (MAPFONT D 2
    (FONTNAME dgjhw)
    (FONTAT R 1.0)
    (FONTDSIZE R 10.0)
    )

 Does anyone know how this fontchecksum is generated and what is being
 checksummed? I do not find any reference to it in the makuniwada.pl
 script in the write_vpl routine nor do I find it if I open a pfb file
 in fontforge.

 Regards, Gernot

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to