[Bug 227761] print/freetype2: Fonts aren't correctly rendered with 2.9
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Aug 18 01:30:26 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227761
--- Comment #36 from lightside <lightside at gmx.com> ---
Created attachment 196303
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196303&action=edit
The freetype2 debug output for test_empty.pdf (Ghostscript 9.23)
(In reply to comment #35)
> Ok, I just created an unencrypted and cleaned pdf with using the font
> "AgfaRotisSansSerif"
The (automated) git bisect have found the same
75cb071b3fbfa2315c5d458fee2bb465a14568ae commit for test_empty.pdf file in
attachment #196273 (see comment #3 for git bisect log).
Used following changes for test.sh in attachment #194200:
-8<--
<..>
TEST_SOURCE=${WRKSRC}/../test_empty.pdf
<..>
expected_checksum="99ceb7731c525cdd6163c662e80dccff0ed0f80192dc428a529ef49c75a932d2"
<..>
do_build_test() {
env LD_PRELOAD=./objs/.libs/libfreetype.so convert -alpha remove
${TEST_SOURCE} ${TEST_OUTPUT}
check_errors "$1"
}
<..>
-->8-
Some (intermediate) solution was to comment FT_CONFIG_OPTION_POSTSCRIPT_NAMES
define for include/freetype/config/ftoption.h (see comment #9):
% sed -i '.gpn.bak' -e 's|^\(#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES.*\)|/*
\1 */|' include/freetype/config/ftoption.h
Attached freetype2 debug output (with using FT2_DEBUG="any:5" environment
variable) for VER-2.8:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tag/?h=VER-2-8
VER-2.9.1:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tag/?h=VER-2-9-1
and current master commit VER-2-9-1-183-gc94162a22:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=c94162a2200c16e9614289cf91d6bf0e0b01a01f
Some difference between VER-2-8 (where it worked) and VER-2-9
(VER-2-9-1-183-gc94162a22) for 5.txt output was:
-8<--
tt_face_lookup_table: 0x807869da8, `CBLC' -- could not find table
tt_face_lookup_table: 0x807869da8, `CBDT' -- could not find table
-->8-
---
Commands to create freetype2 debug output (after git checkout for needed
commit) was:
-8<--
% setenv OUTPUT `git describe`
% echo $OUTPUT
% mkdir -p ../output/$OUTPUT
% ../test.sh build
<..>
% git show -s --format="# %s%n#
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=%H" >
../output/$OUTPUT/commit.txt
% env FT2_DEBUG="any:5" LD_PRELOAD=./objs/.libs/libfreetype.so sh -c "convert
-alpha remove ../test_empty.pdf image.jpg 2>&1 | tee ../output/$OUTPUT/5.txt"
<..>
% cp -p image.jpg ../output/$OUTPUT/
% ../test.sh clean
-->8--
To Pascal Christen:
I guess, you can try to share test_empty.pdf file in attachment #196273 with
related developers.
If you want, you can try to continue discussion on:
https://savannah.nongnu.org/bugs/?53739
As far as I know, the accepted solution for changes in
75cb071b3fbfa2315c5d458fee2bb465a14568ae wasn't found in this PR.
Only suggestions to directly use gs or pdftoppm program, instead of convert, or
comment FT_CONFIG_OPTION_POSTSCRIPT_NAMES define for
include/freetype/config/ftoption.h before freetype2 build, e.g. for custom
libfreetype.so library and env LD_PRELOAD=path/to/libfreetype.so usage for
convert program (see comment #9).
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-gnome
mailing list