Why are your replies typed in HTML when you see replies in plaintext text? Did
you notice the error in the contributed code? See for yourself in the attached
plaintext reply. (Microsoft line format, UTF-16, little endian) Hello Piotr,
The way to do it is to first go to ttinterp.c , then at the start of the
file declare two variables: char FT_injectedGETINFOhack = 0; FT_Long
FT_injectedGETINFOhackvalue; this is an interesting idea, thanks. First of
all, a commercial font is rendered like this when GETINFO is not intercepted:
i.imgur.com i.imgur.com Size 18ppem and up is where it gets very
controversial in rendering. In this case what default v38 FreeType does is end
up with fractional horizontal stems. Using Visual TrueType reveals that the
font only does that when fractional widths are used in ClearType. However it
is very worrying that this is default FreeType behavior, and no
FT_RENDER_MODE_XXX is documented to use an integer width version of subpixel
hinting. I don't fully understand what you are saying. Please elaborate.
Is there a documentation bug in FreeType? What happens with the intercepted
GETINFO? In the following image I use the following settings:
FT_injectedGETINFOhack = 1; FT_injectedGETINFOhackvalue = 0x00006C00;
i.imgur.com i.imgur.com . Suddenly the problems with fractional horizontal
stems disappear. This will in fact allow the FreeType user to use a custom
GETINFO value, and GETINFO (what fonts see how the renderer is like) becomes
detached from the FreeType render mode (what the renderer is actually like),
allowing for personalized renderer settings. Please file this report in the
bug tracker as a wishlist issue so that it doesn't get forgotten.
Werner
ÿþ[ [ [
H e l l o P i o t r ,
T h e w a y t o d o i t i s t o f i r s t g o t o
t t i n t e r p . c , t h e n a t t h e s t a r t o f
t h e f i l e d e c l a r e t w o v a r i a b l e s :
c h a r F T _ i n j e c t e d G E T I N F O h a c k = 0 ;
F T _ L o n g
F T _ i n j e c t e d G E T I N F O h a c k v a l u e ;
t h i s i s a n i n t e r e s t i n g i d e a , t h a n k s .
] ] ]
D i d y o u n o t i c e t h e e r r o r i n t h e
c o n t r i b u t e d c o d e n e a r l i n e 7 6 6 0 ? I t
e n d s u p w i t h
v e r y s t r a n g e r e s u l t s l i k e 0 x 0 0 0 0 1 0 0 0
b e i n g v e r s i o n 4 0 9 6 ( w h i c h i n t h e
t r a d e m a r k e d R a s t e r I n f o f o n t i s
d i s p l a y e d a s 9 6 ) d e s p i t e i t b e i n g m o r e
b i t s t h a n
v e r s i o n i s a l l o c a t e d f o r . I t s h o u l d
a c t u a l l y b e l i k e t h i s , w i t h a b i t
f i l t e r :
# e n d i f / *
T T _ S U P P O R T _ S U B P I X E L _ H I N T I N G _ I N F I N A L I T Y
* /
i f ( F T _ i n j e c t e d G E T I N F O h a c k ) {
K = F T _ i n j e c t e d G E T I N F O h a c k v a l u e &