Hi,

If I remember correctly the issue with that approach was that I couldn't
find a way to get a common coordinate system for the two images and hence
would get artifacts on some glyphs. The outlined glyph (sorry, should really
say stroked glyph to avoid confusion but old habits die hard) image is going
to have larger dimensions than the regular glyph image and how do you find
the "pivot" for both of them? The stroked version isn't necessarily an even
number of pixels wider and taller so you can't just use width/2 and
height/2.

Maybe one of the freetype guys can let us all know if there is a way? It
sure would make for a simper sample...though I'm pretty satisfied with 300
lines of code to interface with an open source library ;)

Erik Möller,
Timetrap
http://www.timetrap.se
http://www.emberwind.se

-----Original Message-----
From: Mickey Gabel [mailto:[email protected]] 
Sent: den 26 februari 2009 03:51
To: Erik Möller
Cc: [email protected]
Subject: Re: [ft] Questions with freetype

On 26/02/2009 09:47, Erik Möller wrote:
> Pseudo-code has never been my thing and it wasn't really practical to send
> my font system, so here's 300 lines of fresh c++ source:
>
> http://www.timetrap.se/post_images/small_font_test.cpp
> http://www.timetrap.se/post_images/small_font_test_output.png
>
> This is hopefully a to the point sample that shows how to render a colored
> glyph with a differently colored outline to a memory buffer. It dumps the
> result out as a tga to disc.
>

Thank you for taking so much time.

Here is my question: is it possible to do this WITHOUT using the span 
renderer callback? It seems that I could use Outline_Get_Bitmap and then 
combine it with the result from Glyph_to_Bitmap. Your thoughts?



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3890 (20090226) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3890 (20090226) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to