Revision: 232
http://openpcl.svn.sourceforge.net/openpcl/?rev=232&view=rev
Author: documentsystems
Date: 2010-05-12 17:43:04 +0000 (Wed, 12 May 2010)
Log Message:
-----------
Modified Paths:
--------------
openpcl/src/com/openpcl/pclrenderimage/render/PriFonts.java
Modified: openpcl/src/com/openpcl/pclrenderimage/render/PriFonts.java
===================================================================
--- openpcl/src/com/openpcl/pclrenderimage/render/PriFonts.java 2010-05-11 18:41:31 UTC (rev 231)
+++ openpcl/src/com/openpcl/pclrenderimage/render/PriFonts.java 2010-05-12 17:43:04 UTC (rev 232)
@@ -427,7 +427,7 @@
mCurrentHorizontalPitch = pNumCharactersPerInch;
}
- mCurrentHorizontalMotionIndexHMI = (120 / mCurrentHorizontalPitch);
+// removed jfg 5.11.2010 mCurrentHorizontalMotionIndexHMI = (120 / mCurrentHorizontalPitch);
// PriDebug.infoln(PriDebug.spacesForPclParseMsgs +
// "PriFonts set Horizontal Pitch (number of characters per inch) to " + mCurrentHorizontalPitch);
makeFontCurrent();
@@ -455,6 +455,7 @@
*/
public void setHorizontalMotionIndexHMI(float pHmiValue) {
mCurrentHorizontalMotionIndexHMI = pHmiValue;
+
mCurrentHorizontalPitch = (120 / mCurrentHorizontalMotionIndexHMI);
// PriDebug.infoln(PriDebug.spacesForPclParseMsgs +
// "PriFonts set Horizontal Motion Index (HMI) to " + pHmiValue);
@@ -504,10 +505,11 @@
if (mCurrentJavaBuiltInFont == sFontIsMonospaced) {
// For monospaced font (Courier), initialize to HMI 12 and CPI 10
- if (mCurrentHorizontalMotionIndexHMI == 0) { //don't reset the HMI if it has already been set
+ if (mCurrentHorizontalMotionIndexHMI == 0) { //don't reset the HMI or Pitch if it has already been set jfg 5.11.2010
mCurrentHorizontalMotionIndexHMI = 12;
+ mCurrentHorizontalPitch = 10;
}
- mCurrentHorizontalPitch = 10;
+
mCurrentFontStylePlanBoldItalic = Font.PLAIN;
mCurrentFontHeight = 12.0f;
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|