nanogui: FLTK freetype font anti-alias


Previous by date: 5 May 2008 15:09:21 -0000 Cyrillic font buit-in, Cristian Chiarello
Next by date: 5 May 2008 15:09:21 -0000 Re: Cyrillic font buit-in, Greg Haerr
Previous in thread:
Next in thread: 5 May 2008 15:09:21 -0000 Re: FLTK freetype font anti-alias, Greg Haerr

Subject: FLTK freetype font anti-alias
From: "Ricardo Jasinski" ####@####.####
Date: 5 May 2008 15:09:21 -0000
Message-Id: <ee9633130805050809i3ecbd8d2kc63b6ca280eea5da@mail.gmail.com>

Hello everyone,

suppose I want to render anti-aliased text from FLTK2. What would be the
recommended approach?

I can imagine a few workarounds, but I don't feel very confident about
anyone of them:

1) Hack the source code in nxlib and whenever it calls GrCreateFont, call
GrSetFontAttributes right afterwards;
2) Let FLTK create the font, get a handle to it from nano-X server, and call
GrSetFontAttributes;
3) Use the XFontStruct from FLTK, get the font handle from it, and call
GrSetFontAttributes.

I'm just throwing some options here, I've made some testing with the above
choices but I still feel there should be something that look less like a
hack...

Please send any comments and ideas and I will give them a try!

Thanks,

Ricardo.

---------------------------------------------------------
Ricardo Pereira Jasinski
####@####.####
Tel: (41) 9955-2852

LME - Laboratório de Microeletrônica da UTFPR
UTFPR Microelectronics Lab
www.lme.cpdtt.cefetpr.br
Tel: +55 41 3310 4756

Previous by date: 5 May 2008 15:09:21 -0000 Cyrillic font buit-in, Cristian Chiarello
Next by date: 5 May 2008 15:09:21 -0000 Re: Cyrillic font buit-in, Greg Haerr
Previous in thread:
Next in thread: 5 May 2008 15:09:21 -0000 Re: FLTK freetype font anti-alias, Greg Haerr


Powered by ezmlm-browse 0.20.