Fixed Issue 784: Allow extensions to set font color

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2027 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2011-03-09 18:55:48 +00:00
parent 582b249a97
commit 3f54e9d5e2
1 changed files with 17 additions and 0 deletions

View File

@ -7313,6 +7313,23 @@ this.setFontFamily = function(val) {
}
};
// Function: setFontColor
// Set the new font color
//
// Parameters:
// val - String with the new font color
this.setFontColor = function(val) {
cur_text.fill = val;
changeSelectedAttribute("fill", val);
};
// Function: getFontColor
// Returns the current font color
this.getFontSize = function() {
return cur_text.fill;
};
// Function: getFontSize
// Returns the current font size
this.getFontSize = function() {