CVS: jfor/src/org/jfor/jfor/converter FoUnitsConverter.java,1.7,1.8
Phil Chu <[email protected]> Sun, 19 Oct 2003 12:44:23 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/converter
In directory sc8-pr-cvs1:/tmp/cvs-serv7240/jfor/src/org/jfor/jfor/converter
Modified Files:
FoUnitsConverter.java
Log Message:
support for em and pc units
Index: FoUnitsConverter.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/converter/FoUnitsConverter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FoUnitsConverter.java 12 Jul 2002 08:08:31 -0000 1.7
--- FoUnitsConverter.java 19 Oct 2003 19:44:21 -0000 1.8
***************
*** 62,65 ****
--- 62,68 ----
// $Id$
// $Log$
+ // Revision 1.8 2003/10/19 19:44:21 philipchu
+ // support for em and pc units
+ //
// Revision 1.7 2002/07/12 08:08:31 bdelacretaz
// License changed to jfor Apache-style license
***************
*** 104,107 ****
--- 107,113 ----
public static final float MM_TO_TWIPS = IN_TO_TWIPS / 25.4f;
public static final float CM_TO_TWIPS = 10 * MM_TO_TWIPS;
+ // added by Phil Chu 7/24/03
+ public static final float EM_TO_TWIPS = 12 * POINT_TO_TWIPS;
+ public static final float PC_TO_TWIPS = 12 * POINT_TO_TWIPS;
***************
*** 113,116 ****
--- 119,125 ----
m_twipFactors.put("pt",new Float(POINT_TO_TWIPS));
m_twipFactors.put("in",new Float(IN_TO_TWIPS));
+ // added by Phil Chu 7/24/03
+ m_twipFactors.put("em",new Float(EM_TO_TWIPS));
+ m_twipFactors.put("pc",new Float(PC_TO_TWIPS));
}
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com