[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] How to use the PCF fonts with FreeType 2.5.3
From: |
Werner LEMBERG |
Subject: |
Re: [ft] How to use the PCF fonts with FreeType 2.5.3 |
Date: |
Wed, 31 Jan 2018 07:32:10 +0100 (CET) |
> I am new to the freetype library. Therefore, I have an entry level
> question about how to use the PCF fonts with FreeType 2.5.3.
[FreeType 2.5.3 is almost three years old. The current release is
version 2.9.]
> I tried to search online but there is no example about PCF. Most of
> the results are about TTF. I also tried to follow the example
> <https://www.freetype.org/freetype2/docs/tutorial/example1.c> in
> Freetype tutorial by using a PCF file as the attached file (24 pt
> font size and 100 resolution). It does not report errors, but the
> render result seems to be incorrect.
Using the `ftview' demo program, I can easily load your font:
ftview 33 charR24.pcf.gz
As you can see the `24' in the font name refers to the point size, not
the pixel size (which FreeType computes as 33ppem).
To make that work you need a FreeType library that has both activated
PCF and gzip support.
Werner