summaryrefslogtreecommitdiff
path: root/print/freetype2
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-24 19:18:39 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-10-24 19:18:39 +0000
commit1e7662afc646e9743f6f9cb6cc8f474c8608d878 (patch)
treef7acdaf8208947d9b39c869734cca526ef520c0c /print/freetype2
parentAdd ruby-libxslt, Ruby bindings for libxslt. XML::XSLT is XSL compliant. (diff)
Fix a problem with fonts showing up diagonally in mozilla-devel.
Submitted by: Matthew Reimer <mreimer@vpop.net> Obtained from: freetype2 CVS
Notes
Notes: svn path=/head/; revision=68752
Diffstat (limited to 'print/freetype2')
-rw-r--r--print/freetype2/Makefile1
-rw-r--r--print/freetype2/files/patch-xft-fonts33
2 files changed, 34 insertions, 0 deletions
diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile
index 41afb89b09df..a2daed7665ab 100644
--- a/print/freetype2/Makefile
+++ b/print/freetype2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= freetype2
PORTVERSION= 2.1.2
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \
http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \
diff --git a/print/freetype2/files/patch-xft-fonts b/print/freetype2/files/patch-xft-fonts
new file mode 100644
index 000000000000..f3cd8e7316ec
--- /dev/null
+++ b/print/freetype2/files/patch-xft-fonts
@@ -0,0 +1,33 @@
+This patch fixes a problem with diagonal fonts being displayed in mozilla-devel
+with Xft support enabled. It was obtained from:
+
+http://www.xfree86.org/pipermail/fonts/2002-September/002161.html
+
+This is already in freetype2 CVS, and should not be needed when the next
+release of freetype2 comes out.
+--- src/base/ftoutln.c.orig Thu Oct 24 14:32:25 2002
++++ src/base/ftoutln.c Thu Oct 24 14:33:09 2002
+@@ -628,9 +628,9 @@
+ return;
+
+ xz = FT_MulFix( vector->x, matrix->xx ) +
+- FT_MulFix( vector->y, matrix->yx );
++ FT_MulFix( vector->y, matrix->xy );
+
+- yz = FT_MulFix( vector->x, matrix->xy ) +
++ yz = FT_MulFix( vector->x, matrix->yx ) +
+ FT_MulFix( vector->y, matrix->yy );
+
+ vector->x = xz;
+--- src/truetype/ttgload.c.orig Thu Oct 24 14:33:38 2002
++++ src/truetype/ttgload.c Thu Oct 24 14:34:09 2002
+@@ -544,8 +544,8 @@
+ else if ( subglyph->flags & WE_HAVE_A_2X2 )
+ {
+ xx = (FT_Fixed)FT_GET_SHORT() << 2;
+- xy = (FT_Fixed)FT_GET_SHORT() << 2;
+ yx = (FT_Fixed)FT_GET_SHORT() << 2;
++ xy = (FT_Fixed)FT_GET_SHORT() << 2;
+ yy = (FT_Fixed)FT_GET_SHORT() << 2;
+ }
+