diff options
author | Glenn Adams <gadams@apache.org> | 2014-08-17 18:56:01 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2014-08-17 18:56:01 +0000 |
commit | 49c8708241bc45067382b90d76fdf4a85e5f1cae (patch) | |
tree | 2e43cf24b3cc461b561a2b8683ebd80e0c3da2dc /src/java/org/apache/fop/fonts/CustomFont.java | |
parent | 5f66eef3fe635d61f3e6408d101a87b57409aa5c (diff) | |
download | xmlgraphics-fop-49c8708241bc45067382b90d76fdf4a85e5f1cae.tar.gz xmlgraphics-fop-49c8708241bc45067382b90d76fdf4a85e5f1cae.zip |
Add verbose (-v) flag to FontList tool that shows URI of font resource.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1618496 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/CustomFont.java')
-rw-r--r-- | src/java/org/apache/fop/fonts/CustomFont.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/CustomFont.java b/src/java/org/apache/fop/fonts/CustomFont.java index 5c0673b04..fffb429ed 100644 --- a/src/java/org/apache/fop/fonts/CustomFont.java +++ b/src/java/org/apache/fop/fonts/CustomFont.java @@ -42,6 +42,7 @@ public abstract class CustomFont extends Typeface /** Fallback thickness for underline and strikeout when not provided by the font. */ private static final int DEFAULT_LINE_THICKNESS = 50; + private URI fontFileURI; private String fontName; private String fullName; private Set<String> familyNames; @@ -89,6 +90,11 @@ public abstract class CustomFont extends Typeface /** {@inheritDoc} */ + public URI getFontURI() { + return fontFileURI; + } + + /** {@inheritDoc} */ public String getFontName() { return fontName; } @@ -326,6 +332,11 @@ public abstract class CustomFont extends Typeface /* ---- MutableFont interface ---- */ /** {@inheritDoc} */ + public void setFontURI(URI uri) { + this.fontFileURI = uri; + } + + /** {@inheritDoc} */ public void setFontName(String name) { this.fontName = name; } |