From b05508a6bd2fd806288e5ad71641bf87667c84b2 Mon Sep 17 00:00:00 2001 From: David Schweinsberg Date: Wed, 27 Jan 2016 14:45:59 +1100 Subject: Corrected orientation of CharacterMap display after inversion of Y axis --- src/net/java/dev/typecast/edit/CharacterMap.java | 2 +- src/net/java/dev/typecast/render/GlyphImageFactory.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 David Schweinsberg - * @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, -- cgit v1.2.3