freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Re: WINFONTS support


From: Ron . Dev
Subject: [Devel] Re: WINFONTS support
Date: Mon, 2 Jun 2003 03:01:17 +0200 (CEST)

> > My ftview (2.1.4) has some problems to diaply .FON files, though.
> > Both original 8514oem.fon and produced by PfaEdit 'Fixedsys.fon'
> > look like corrupted (as I said above, BDF displays fine).
> 
> My request for fixing this has gone without reaction...

A simple observation:

FON files store their glyph bitmaps column-first, but I don't see any
code in FNT_Load_Glyph to reorder that to the row-first order expected
by FT_Bitmap. Or maybe there's an option for the renderer to do just that,
that is not set. I don't know that part of the code well enough.

So the code must fail for widths > 8 and 8514oem.fon is 10x20.

Example for the plus sign (ASCII 43) from 8415oem.fon:

00 00 00 00 00 0c 0c 0c 7f 7f 0c 0c 0c 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 80 80 00 00 00 00 00 00 00 00 00 00

Original    Glyph    Wrong  Displayed  Displayed
Bitmap      Bytes    Order  Bitmap     Overshoot

++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 0c  ++++++++++ ++##++
++++++++++  00 00    0c 0c  ++++##++++ ++##++
++++++++++  00 00    7f 7f  +#######+# ######
++++##++++  0c 00    0c 0c  ++++##++++ ++##++
++++##++++  0c 00    0c 00  ++++##++++ ++++++
++++##++++  0c 00    00 00  ++++++++++ ++++++
+########+  7f 80    00 00  ++++++++++ ++++++
+########+  7f 80    00 00  ++++++++++ ++++++
++++##++++  0c 00    00 00  ++++++++++ ++++++
++++##++++  0c 00    00 00  ++++++++++ ++++++
++++##++++  0c 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    80 80  #+++++++#+ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++
++++++++++  00 00    00 00  ++++++++++ ++++++

The right side matches exactly what is displayed on the screen.

Since I don't know whether there is already some hidden row/column swapping
support, I leave the fix to Werner. :-)

On a related note: ftview seems to work with all kinds of fonts, but
has a 'problem' with bitmapped fonts in the third screen (Render_Waterfall).
And ftstring does not display anything with bitmapped fonts. Bug or feature?

|Ron|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]