freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ft] Questions with freetype


From: Erik Möller
Subject: RE: [ft] Questions with freetype
Date: Mon, 16 Mar 2009 11:17:50 +0100

Hi,

I'll just answer #2.

The reason I rendered in that order is because you get a filled larger shape
returned to you when calling FT_Glyph_StrokeBorder() and not just the
"outline". Perhaps you can do better if you peel off one layer of the
interface and go directly on the FT_Outline_GetOutsideBorder() and
FT_Outline_GetInsideBorder() I haven't checked that out though.

And... I'll squeeze in a question for Werner and the guys here. I was trying
to use the rasterizer separately for a prototype and was doing great until I
hit this one:

    /* this version of the raster does not support direct rendering, sorry
*/
    if ( params->flags & FT_RASTER_FLAG_DIRECT )
      return Raster_Err_Unsupported;

Any plans on updating that?

Kind regards,

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

-----Original Message-----
From: Mickey Gabel [mailto:address@hidden 
Sent: den 16 mars 2009 08:05
To: Werner LEMBERG
Cc: address@hidden; address@hidden
Subject: Re: [ft] Questions with freetype


> The origin doesn't change.  Just try `ftview' and switch between
> normal and stroked view using keys `1' and `4'.
> 
> 
>      Werner

Works great!
Some comments, thoughts and questions:

1) What values should I use for FT_Stroke_Set so that they match the way 
FT2 renders glyphs normally?
I am currently using the values in ftview.c which are
FT_STROKER_LINECAP_ROUND, FT_STROKER_LINEJOIN_ROUND, and miter_limit 0 .

(I tried finding this out on my own, but it seems FT2 doesn't use 
FT_Stroker internally).

2) Order of rendering glyph and its stroked outline to a bitmap:
Erik Muller's (excellent!) sample first renders the outline, and then 
the bitmap. I would expect the opposite order!
Erik?

3) Stroking glyphs is apparently a LOT easier than what I (and others on 
this thread) thought. Less than 10 lines of code!
I looked exactly for such a function, yet I didn't find (or didn't 
understand!) FT_Glyph_Stroke, even though the docs are pretty clear.
I wonder why?

Are there other complicated aspects/cases to getting the stroked glyph 
outline that FT_Glyph_Stroke doesn't cover? (obviously for embedded 
bitmaps...)

4) The ft2demos seem to be an EXCELLENT resource for answering lots of 
questions the tutorials don't cover. I had the impression they only 
implement what is explained in the tutorials.
You should add something to that effect at the end of the tutorials? 
(step 3).

        Mickey


__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3937 (20090314) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3937 (20090314) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]