On 2014-01-14 08:00:31 +0000, G�rard Calliet (pia-sofer) said:
> Le 14/01/2014 04:33, Stephen Hoffman a �crit :
>>
>> Load the font daemon on OpenVMS.
>> <
http://labs.hoffmanlabs.com/node/134#comment-2207>
>>
> Thank you, interesting solution.
>
> But I still wonder why the PCF font format from VMS is not recognized outside.
>
> In very minimalist modernizing operations, it could be usefull to just
> export the fonts used to the target x11 server, and I just cannot do
> that.
>
> I thought there can be some trouble with file format, but the TTF fonts
> from VMS can be integrated without trouble. What is special with the
> VMS PCF format ?
The copyrights associated with closed-source products and proprietary
fonts generally preclude copying them around.
The font daemon does what you want and need, is the standard X11
approach for systems of this era, operates in a portable fashion, and
generally avoids running afoul of font-related copyrights.
As for the technical answer you seek, that involves doing some basic
reverse-engineering <
http://labs.hoffmanlabs.com/node/940> (where that
sort of reverse engineering is permitted) on the PCF font file format;
both looking for any RMS-level differences (many of the OpenVMS
sequential file formats are not platform-transportable) and some
record-level digging. ANALYZE /RMS on OpenVMS
<
http://labs.hoffmanlabs.com/node/302> and xxd
<
http://labs.hoffmanlabs.com/node/1648> on working and non-working
examples (of the same font file format) would be typical. But porting
<
http://labs.hoffmanlabs.com/node/225> is more involved. That TTF is
portable is interesting, but not particularly relevant to a different
font format. You'll also want to test that some other PCF files work
on the target platform, too; that's an obvious test on the target
system, and you need working PCF files on the target platform for the
low-level comparison.
Also confirm the files weren't corrupted by ftp or sftp. Copy the
files to the target, copy them back, and diff the results. Those sorts
of transfer-tool corruptions have happened before; some of the folks
that have posted here have gotten burned by sftp problems, and somebody
was recently having problems getting scp to work.
While digging into this and based on a quick look of two entirely
separate OpenVMS I64 V8.4 systems, I'm seeing the same low-level errors
in some of the font fines (which is never a good sign), and some
differences in the formats; some are Stream LF carriage return, and
some are fixed 512. Here's one of the fonts that appears corrupt:
$ ANALYZE/RMS SYS$SYSROOT:[SYSCOMMON.SYSFONT.DECW.EURO_75DPI]COURIER10.PCF
In any case, start digging at the PCF formats with the available tools,
and find the difference(s). Or use the font daemon, and avoid this
whole morass.
Modernizing an X11 application is certainly an interesting project; the
VMS X11 libraries are ancient, and more than a few of the VMS X11 apps
I've encountered have the non-portable DECwindows calls twisted all
through the code; they're less than portable, and replacing the GUI (if
or when that becomes necessary) is a large project.