Re: Using the Symbol font with pango
- From: Timothée Lecomte <timothee lecomte ens fr>
- To: gtk-i18n-list gnome org
- Cc: Behdad Esfahbod <behdad cs toronto edu>
- Subject: Re: Using the Symbol font with pango
- Date: Wed, 04 Jan 2006 22:08:22 +0100
Dear Pango enthusiasts,
Just to inform possible list readers, I have managed to handle the
Symbol font by manually translating characters to their official unicode
counterparts, as defined in the Unicode offical website :
http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/SYMBOL.TXT
I simply iterate on each character of my input string, translate the
character via glib utf-8 functions.
It may not be optimal, but it is satisfying for me.
Best regards,
Timothée Lecomte
Timothee Lecomte a écrit :
On Tue, 29 Nov 2005, Behdad Esfahbod wrote:
On Tue, 29 Nov 2005, [ISO-8859-15] Timothée Lecomte wrote:
Dear Pango specialists,
I am writing a rendering terminal for gnuplot, a scientific plotter. I
use Cairo for drawing, and Pango to manage text. I would like to use
the
Symbol font with its conventionnal mapping, as it is the common way to
display mathematic characters under gnuplot currently.
However, if I simply choose the Symbol font and try to draw the
characters, I don't get the desired output. Under Linux (gtk2.8, pango
1.10.1, cairo 1.0.2), I get expected Symbol output for characters
for up
to 128 (ie greek characters) and default font for others, and under
Windows (pango 1.10.1, cairo 1.0.2) I don't get any Symbol output but
default font.
Are you converting from an 8bit encoding to UTF-8 properly?
Pango doesn't accept invalid UTF-8 at all.
I think it should be ok, as I use g_convert() to obtain utf-8 from
current encoding (usually iso-8859-1) and I don't get any error
message from pango.
I understand that Pango is based on unicode, and that the Symbol font
doesn't respect unicode. I would be pleased to have help regarding
this.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]