From 77de791e40c79bd32810b4ac5f2f94ca755e1c2a Mon Sep 17 00:00:00 2001 From: tavmjong-free Date: Wed, 14 Apr 2010 17:36:23 +0200 Subject: [PATCH] Changed default font from Bitstream Vera Sans to Sans. Not everyone has Bitstream Vera Sans and having a non-existant default font can cause problems. --- src/preferences-skeleton.h | 2 +- src/style.cpp | 6 +++--- src/ui/dialog/filedialogimpl-gtkmm.cpp | 8 ++++---- src/ui/widget/imageicon.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index af9b446d8..c12b8f9ba 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -112,7 +112,7 @@ static char const preferences_skeleton[] = " \n" +" style=\"fill:black;fill-opacity:1;stroke:none;font-family:Sans;font-style:normal;font-weight:normal;font-size:40px;\" selcue=\"1\"/>\n" " \n" " \n" " \n" diff --git a/src/style.cpp b/src/style.cpp index 19ff711da..a05cef252 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -2783,9 +2783,9 @@ sp_text_style_new() ts->refcount = 1; sp_text_style_clear(ts); - ts->font_specification.value = g_strdup("Bitstream Vera Sans"); - ts->font.value = g_strdup("Bitstream Vera Sans"); - ts->font_family.value = g_strdup("Bitstream Vera Sans"); + ts->font_specification.value = g_strdup("Sans"); + ts->font.value = g_strdup("Sans"); + ts->font_family.value = g_strdup("Sans"); return ts; } diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index 916e3ec97..6f83a706f 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -271,7 +271,7 @@ void SVGPreview::showImage(Glib::ustring &theFileName) "%d x %d\n" //# VALUES HERE "\n\n"; @@ -374,7 +374,7 @@ void SVGPreview::showNoPreview() "style=\"font-size:32.000000;font-style:normal;font-variant:normal;font-weight:bold;" "font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;" "stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" - "font-family:Bitstream Vera Sans;text-anchor:middle;writing-mode:lr\"\n" + "font-family:Sans;text-anchor:middle;writing-mode:lr\"\n" "x=\"190\" y=\"240\">%s\n" //# VALUE HERE "\n\n"; @@ -471,13 +471,13 @@ void SVGPreview::showTooLarge(long fileLength) "style=\"font-size:32.000000;font-style:normal;font-variant:normal;font-weight:bold;" "font-stretch:normal;fill:#000000;fill-opacity:1.0000000;stroke:none;stroke-width:1.0000000pt;" "stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000;" - "font-family:Bitstream Vera Sans;text-anchor:middle;writing-mode:lr\"\n" + "font-family:Sans;text-anchor:middle;writing-mode:lr\"\n" "x=\"170\" y=\"215\">%5.1f MB\n" //# VALUE HERE "%s\n" //# VALUE HERE "\n\n"; diff --git a/src/ui/widget/imageicon.cpp b/src/ui/widget/imageicon.cpp index 6a817e30d..71ba4428c 100644 --- a/src/ui/widget/imageicon.cpp +++ b/src/ui/widget/imageicon.cpp @@ -295,7 +295,7 @@ void ImageIcon::showBrokenImage(const Glib::ustring &errorMessage) "