Fixed Issue 265: Allow selection of a user-defined font in the text dialog

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@989 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-12-02 20:09:36 +00:00
parent c3fecc8bf9
commit 73f6b976a8
3 changed files with 28 additions and 11 deletions

View File

@@ -594,10 +594,6 @@ function svg_edit_setup() {
}
});
$('#font_family').change(function(){
svgCanvas.setFontFamily(this.options[this.selectedIndex].value);
});
$('#seg_type').change(function() {
svgCanvas.setSegType($(this).val());
});
@@ -734,6 +730,12 @@ function svg_edit_setup() {
});
}
addDropDown('#font_family_dropdown', function() {
var fam = $(this).text();
$('#font_family').val(fam);
svgCanvas.setFontFamily(fam);
});
addDropDown('#opacity_dropdown', function() {
if($(this).find('div').length) return;
var perc = parseInt($(this).text().split('%')[0]);