summaryrefslogtreecommitdiff
path: root/splash/SplashFont.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2005-09-15 22:15:47 +0000
committerAlbert Astals Cid <aacid@kde.org>2005-09-15 22:15:47 +0000
commit3ea00e853049d8c26ee88aaef8ea6c47c8d46956 (patch)
tree01778ff5cee6fc61ee7f7a37e2740186b9c36f70 /splash/SplashFont.h
parente571dcbfd0c77a28e41710577859f632cc989de5 (diff)
Merge xpdf 3.00 -> 3.01 changes in SplashFont.* files
Diffstat (limited to 'splash/SplashFont.h')
-rw-r--r--splash/SplashFont.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/splash/SplashFont.h b/splash/SplashFont.h
index f8e8de36..59bc14e4 100644
--- a/splash/SplashFont.h
+++ b/splash/SplashFont.h
@@ -25,7 +25,8 @@ class SplashPath;
// decimal points.
#define splashFontFractionBits 2
#define splashFontFraction (1 << splashFontFractionBits)
-#define splashFontFractionMul (1 / (SplashCoord)splashFontFraction)
+#define splashFontFractionMul \
+ ((SplashCoord)1 / (SplashCoord)splashFontFraction)
//------------------------------------------------------------------------
// SplashFont
@@ -69,6 +70,13 @@ public:
// Return the path for a glyph.
virtual SplashPath *getGlyphPath(int c) = 0;
+ // Return the font transform matrix.
+ SplashCoord *getMatrix() { return mat; }
+
+ // Return the glyph bounding box.
+ void getBBox(int *xMinA, int *yMinA, int *xMaxA, int *yMaxA)
+ { *xMinA = xMin; *yMinA = yMin; *xMaxA = xMax; *yMaxA = yMax; }
+
protected:
SplashFontFile *fontFile;