Revision: 6983
Author: victormote
Date: 2006-03-19 18:24:44 -0800 (Sun, 19 Mar 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=6983&view=rev
Log Message:
-----------
Add method allowing an en masse replacement of the simulated stretch values.
Modified Paths:
--------------
trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontDesc.java
Modified: trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontDesc.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontDesc.java 2006-03-20 02:01:26 UTC (rev 6982)
+++ trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontDesc.java 2006-03-20 02:24:44 UTC (rev 6983)
@@ -173,6 +173,14 @@
this.simulateStretch[index] = value;
}
+ public void setSimulateStretch(float[] newStretchArray) {
+ if (newStretchArray == null
+ || newStretchArray.length != this.simulateStretch.length) {
+ return;
+ }
+ this.simulateStretch = newStretchArray;
+ }
+
public void setSimulateUltraCondensed(float value) {
this.simulateStretch[0] = value;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|