diff options
author | David Schweinsberg <[email protected]> | 2016-01-27 14:45:59 +1100 |
---|---|---|
committer | David Schweinsberg <[email protected]> | 2016-01-27 14:45:59 +1100 |
commit | b05508a6bd2fd806288e5ad71641bf87667c84b2 (patch) | |
tree | 5ae1b5ccd71188e3b77a7de24643b4c85478e90e /src | |
parent | 6ea36086f23e6b412637c29733e08d605e24b2d1 (diff) |
Corrected orientation of CharacterMap display after inversion of Y axis
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/dev/typecast/edit/CharacterMap.java | 2 | ||||
-rw-r--r-- | src/net/java/dev/typecast/render/GlyphImageFactory.java | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/net/java/dev/typecast/edit/CharacterMap.java b/src/net/java/dev/typecast/edit/CharacterMap.java index 9fc6d30..a515de8 100644 --- a/src/net/java/dev/typecast/edit/CharacterMap.java +++ b/src/net/java/dev/typecast/edit/CharacterMap.java @@ -209,7 +209,7 @@ public class CharacterMap extends JScrollPane implements EditorView { _tx = new AffineTransform(); _tx.translate(2, CELL_HEIGHT - 20); - _tx.scale(scaleFactor, scaleFactor); + _tx.scale(scaleFactor, -scaleFactor); } } } diff --git a/src/net/java/dev/typecast/render/GlyphImageFactory.java b/src/net/java/dev/typecast/render/GlyphImageFactory.java index 432991b..580305b 100644 --- a/src/net/java/dev/typecast/render/GlyphImageFactory.java +++ b/src/net/java/dev/typecast/render/GlyphImageFactory.java @@ -1,9 +1,7 @@ /* - * $Id: GlyphImageFactory.java,v 1.1 2004-12-21 10:18:11 davidsch Exp $ - * * Typecast - The Font Development Environment * - * Copyright (c) 2004 David Schweinsberg + * Copyright (c) 2004-2016 David Schweinsberg * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +32,6 @@ import net.java.dev.typecast.ot.Glyph; /** * A factory for generating bitmaps from glyph outlines. * @author <a href="mailto:[email protected]">David Schweinsberg</a> - * @version $Id: GlyphImageFactory.java,v 1.1 2004-12-21 10:18:11 davidsch Exp $ */ public class GlyphImageFactory { @@ -45,6 +42,7 @@ public class GlyphImageFactory { * @param at The transformation to apply to the glyph before rendering * @param width The width of the image to render into * @param height The height of the image to render into + * @return */ public static BufferedImage buildImage( Glyph glyph, |