Hi,
The support for Unicode is already implemented. Or perhaps I'm not understanding the question.
Well, more specifically, GRX supports characters coded in 16 bits.
All you need to do is to fill the field 'txo_chrtype' of GrTextOption with the constant GR_WORD_TEXT.
You will need to obtain an Asiatic font, in truetype or X11 formats, and convert it to the GRX format.
Best regards
Josu Onandia
-----Original Message----- From: grx-owner@gnu.de on behalf of André Moreira Sent: Tue 11/20/2007 1:15 PM To: grx@gnu.de Subject: adding unicode fonts support to grx
Well,
I need to add asian character to my application and as I'm doing that I started thinking about adding unicode support to GRX.
Althought I could simply pick and place "bitmaps" of asian characters, that wouldn't be flexible so... how can I add unicode support to GRX?
What do I need to change, where do I need to change them etc...
I'm starting to read somethings about it and hopefully (sic) it wouldn't be that much work...
Anyone care to join? I need some guidance to start!
André Moreira
Hi Josu,
Well, that was it, I was looking into the possibility of having grx loading ttf or x11 fonts directly without the need to convert them.... but paramount efforts for later :)
About conversion I have a problem with bdf2grx as I cannot convert any font with more than 255 characters. I can convert from ttf to bdf using ttf2bdf but it fails when I convert from bdf to fnt by using bdf2grx...
ttf->bdf ttf2bdf -p 7 -l "1_63555" -o arial11.bdf code2000.ttf [OK] bdf2grx arial11.bdf wfont.fnt [ERROR]
which renders the following error...
bdf error on line 95:10 write file error....
the font code2000 had more than 60000 glyphs.... . if I convert only the first 256 chars everything works, but I don't have asian character...
Thanks for the reply ;)
André
On 20/11/2007, Josu Onandia jonandia@aotek.es wrote:
Hi,
The support for Unicode is already implemented. Or perhaps I'm not understanding the question.
Well, more specifically, GRX supports characters coded in 16 bits.
All you need to do is to fill the field 'txo_chrtype' of GrTextOption with the constant GR_WORD_TEXT.
You will need to obtain an Asiatic font, in truetype or X11 formats, and convert it to the GRX format.
Best regards
Josu Onandia
-----Original Message----- From: grx-owner@gnu.de on behalf of André Moreira Sent: Tue 11/20/2007 1:15 PM To: grx@gnu.de Subject: adding unicode fonts support to grx
Well,
I need to add asian character to my application and as I'm doing that I started thinking about adding unicode support to GRX.
Althought I could simply pick and place "bitmaps" of asian characters, that wouldn't be flexible so... how can I add unicode support to GRX?
What do I need to change, where do I need to change them etc...
I'm starting to read somethings about it and hopefully (sic) it wouldn't be that much work...
Anyone care to join? I need some guidance to start!
André Moreira