[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Questions with freetype
From: |
Mickey Gabel |
Subject: |
Re: [ft] Questions with freetype |
Date: |
Mon, 16 Mar 2009 09:05:28 +0200 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
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