On Monday 29 October 2007 10:09:21 am Michael Droettboom wrote:
> Michael Droettboom wrote:
> > Darren Dale wrote:
> >> I think the problem is related to autohinting. When I compile freetype,
> >> the patented bytecode and subpixel hinting support is disabled, I am
> >> using freetype's autohinting instead. I recompiled freetype with the
> >> support for the patented hinting instead of autohinting, and reran the
> >> test on cmmi.ttf. The result is cmmi10_p.txt.
> >
> > That seems like a likely explanation... Exactly, which #defines did you
> > change to make it work again? The vanilla freetype tarball works for
> > me...
>
> I seem to have the reversed behavior. On my machine, if I have the
> patented bytecodes disabled (which is the default when you download the
> vanilla freetype tarball from freetype.sf.net), everything works. When
> I define (uncomment) TT_CONFIG_OPTION_BYTECODE_INTERPRETER in
> ftoption.h, things break. (And great news, I'm finally able to
> reproduce this problem.) Is that not what you see?
Gentoo's ebuild has a bindist use flag:
enable_option() {
sed -i -e "/#define $1/a #define $1" \
include/freetype/config/ftoption.h \
|| die "unable to enable option $1"
}
disable_option() {
sed -i -e "/#define $1/ { s:^:/*:; s:$:*/: }" \
include/freetype/config/ftoption.h \
|| die "unable to disable option $1"
}
if ! use bindist; then
# Bytecodes and subpixel hinting supports are patented
# in United States; for safety, disable them while building
# binaries, so that no risky code is distributed.
# See http://freetype.org/patents.html
enable_option FT_CONFIG_OPTION_SUBPIXEL_RENDERING
enable_option TT_CONFIG_OPTION_BYTECODE_INTERPRETER
disable_option TT_CONFIG_OPTION_UNPATENTED_HINTING
fi
Crap. I looked right over the "!" in "if ! use bindist". So you are correct,
the problem occurs when support for patented hinting is enabled and
autohinting is disabled. Did I get it right this time? (I'm running on very
little sleep. Sorry for the confusion.)
Darren
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users