[cairo-commit] 2 commits - src/cairo-ps-surface.c test/ft-show-glyphs-table-ps-ref.png test/Makefile.am
Adrian Johnson
ajohnson at kemper.freedesktop.org
Fri Apr 4 01:56:58 PDT 2008
src/cairo-ps-surface.c | 3 ++-
test/Makefile.am | 1 +
test/ft-show-glyphs-table-ps-ref.png |binary
3 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6192001816053403b8e51fc2aa44cf6d0a9baece
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Fri Apr 4 19:26:00 2008 +1030
Add PS reference image for ft-show-glyphs-table
diff --git a/test/Makefile.am b/test/Makefile.am
index e2987fa..2dce231 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -391,6 +391,7 @@ REFERENCE_IMAGES = \
ft-show-glyphs-positioning-ps-ref.png \
ft-show-glyphs-positioning-svg-ref.png \
ft-show-glyphs-table-ref.png \
+ ft-show-glyphs-table-ps-ref.png \
ft-text-vertical-layout-type1-ps-ref.png \
ft-text-vertical-layout-type1-ref.png \
ft-text-vertical-layout-type1-svg-ref.png \
diff --git a/test/ft-show-glyphs-table-ps-ref.png b/test/ft-show-glyphs-table-ps-ref.png
new file mode 100644
index 0000000..5143663
Binary files /dev/null and b/test/ft-show-glyphs-table-ps-ref.png differ
commit e50324d3cc66df83120f908845657382e0020868
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Fri Apr 4 19:21:40 2008 +1030
PS: Fix emulation of 'Td' pdf operator
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index e78e247..54f5afe 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -183,7 +183,8 @@ _cairo_ps_surface_emit_header (cairo_ps_surface_t *surface)
" { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse\n"
" } forall\n"
"} bind def\n"
- "/Td { moveto } bind def\n"
+ "/Td { matrix translate cairo_font_matrix matrix concatmatrix dup\n"
+ " /cairo_font_matrix exch def cairo_font exch selectfont 0 0 moveto } bind def\n"
"/Tm { 6 array astore dup /cairo_font_matrix exch def\n"
" cairo_font exch selectfont 0 0 moveto } bind def\n"
"/g { setgray } bind def\n"
More information about the cairo-commit
mailing list