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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user