]> git.gag.com Git - debian/openrocket/commit
Change the textual representation of fractional units to use Unicode superscripts...
authorkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 22 May 2012 18:36:04 +0000 (18:36 +0000)
committerkruland2607 <kruland2607@180e2498-e6e9-4542-8430-84ac67f01cd8>
Tue, 22 May 2012 18:36:04 +0000 (18:36 +0000)
commit83c43a8c4fc6bda963d2feccc9158db0cef45f6f
tree943851a1a40515aef7885311d116072845218cb7
parentfb3bf20633f92f75644a128d57546d82993d9cd3
Change the textual representation of fractional units to use Unicode superscripts and subscripts.  Unfortunately, the default fonts included with iText do not have these characters mapped so we needed to switch to a new true type font DejaVu.  Added the DejaVuSerif font definition to the resources and modified the pdf writing process to use this font.  Because this font is slightly wider, the column headings in the DesignReport had to be made smaller.  Finally, had to modify the ExpressionParser to convert the unicode chars to real digits in order to have the expression parser be able to work with this representation.

git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@704 180e2498-e6e9-4542-8430-84ac67f01cd8
core/resources/dejavu-font/DejaVuSerif.ttf [new file with mode: 0644]
core/resources/dejavu-font/LICENSE [new file with mode: 0644]
core/resources/dejavu-font/README [new file with mode: 0644]
core/src/net/sf/openrocket/gui/print/DesignReport.java
core/src/net/sf/openrocket/gui/print/ITextHelper.java
core/src/net/sf/openrocket/gui/print/PrintUtilities.java
core/src/net/sf/openrocket/unit/FractionalUnit.java
core/src/net/sf/openrocket/util/ExpressionParser.java
core/test/net/sf/openrocket/unit/FractionalUnitTest.java