Fixed Issue 784: Allow extensions to set font color
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2027 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
582b249a97
commit
3f54e9d5e2
|
@ -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
|
// Function: getFontSize
|
||||||
// Returns the current font size
|
// Returns the current font size
|
||||||
this.getFontSize = function() {
|
this.getFontSize = function() {
|
||||||
|
|
Loading…
Reference in New Issue