[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] webdings and php
From: |
Detlef Würkner |
Subject: |
Re: [Freetype] webdings and php |
Date: |
Mon, 24 Jun 2002 15:03:14 +0200 |
address@hidden (Daniel Khan) wrote:
> when I try to output a webdings font via php using freetype 2 I only
> get rectangular shapes as output instead of the letters.
>
> Can anyone tell me what could be wrong?
FreeType2 selects a Unicode charmap as default charmap for a font if
available. Webdings.ttf does not have a Unicode charmap. Try to use
something like that:
if ( face->charmap == NULL )
{
error = FT_Select_Charmap( face, ft_encoding_symbol );
if ( !error )
{
/* Symbol encoding ranges from 0xf000 to 0xf0ff */
/* This cant be mapped to Unicode IMHO */
/* Maybe Windows maps this to 0x00 to 0xff ? */
for (i = 0xf000; i <= 0xf0ff; i++)
{
error = FT_Load_Char(face, i, FT_LOAD_DEFAULT);
if ( !error )
/* print char */
}
}
}
Ciao, Detlef
--
_ // address@hidden
\X/ Detlef Wuerkner, Langgoens/Germany