summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-08-21 05:36:22 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-08-21 05:36:22 +0000
commitb3cb91168ba74ef510452d42697e322e27309691 (patch)
treedd58d410639ca242ff62e03ae7242beace6679a3 /src/ui/dialog/inkscape-preferences.cpp
parentfix type (fixes Windows build) (diff)
downloadinkscape-b3cb91168ba74ef510452d42697e322e27309691.tar.gz
inkscape-b3cb91168ba74ef510452d42697e322e27309691.zip
Fix for 168164 : Font size, always output px option
(bzr r11616)
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index d72cde42e..fd5fd9fe1 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -445,9 +445,12 @@ void InkscapePreferences::initPageTools()
Glib::ustring sizeLabels[] = {_("Pixel"), _("Point"), _("Pica"), _("Millimeter"), _("Centimeter"), _("Inch"), _("Em square")/*, _("Ex square"), _("Percent")*/};
int sizeValues[] = {SP_CSS_UNIT_PX, SP_CSS_UNIT_PT, SP_CSS_UNIT_PC, SP_CSS_UNIT_MM, SP_CSS_UNIT_CM, SP_CSS_UNIT_IN, SP_CSS_UNIT_EM/*, SP_CSS_UNIT_EX, SP_CSS_UNIT_PERCENT*/};
+ _page_text.add_group_header( _("Text units"));
_font_unit_type.init( "/options/font/unitType", sizeLabels, sizeValues, G_N_ELEMENTS(sizeLabels), SP_CSS_UNIT_PT );
_page_text.add_line( false, _("Text size unit type:"), _font_unit_type, "",
_("Set the type of unit used in the text toolbar and text dialogs"), false);
+ _font_output_px.init ( _("Always output text size in pixels (px)"), "/options/font/textOutputPx", false);
+ _page_text.add_line( false, "", _font_output_px, "", _("Always convert the text size units above into pixels (px) before saving to file"));
this->AddNewObjectsStyle(_page_text, "/tools/text");