Issue 61008 - RFE: Show a sample sentence in the font selection dialog
Summary: RFE: Show a sample sentence in the font selection dialog
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Reported: 2006-01-22 14:08 UTC by openskm
Modified: 2013-02-07 22:43 UTC (History)
7 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description openskm 2006-01-22 14:08:14 UTC
Currenty the font selection dialog shows the name of the font in preview. In
Hungarian community builds there is a patch which alters this behaviour. 

--- svx/source/dialog/fntctrl.cxx.orig	2005-09-11 17:21:06.000000000 +0200
+++ svx/source/dialog/fntctrl.cxx	2005-10-15 19:33:41.915643100 +0200
@@ -34,6 +34,7 @@
 // include ---------------------------------------------------------------
+#include "chardlg.hrc"
 #include <sfx2/viewsh.hxx>		// SfxViewShell
@@ -83,7 +84,7 @@
 #include "fntctrl.hxx"
 #include "dialogs.hrc"
-#define TEXT_WIDTH	20
+#define TEXT_WIDTH	50
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
@@ -611,6 +612,8 @@
 	Printer* pPrinter = pImpl->pPrinter;
 	SvxFont& rFont = pImpl->aFont;
+	static sal_Char *str_fontpreview="külvízen úszó szárazjégtörő kisjármű";
+	UniString
     if ( pImpl->bUseResText )
 		pImpl->aText = GetText();
@@ -627,7 +630,10 @@
 		if ( !pImpl->bSelection )
-			pImpl->aText = rFont.GetName();
+//			pImpl->aText = rFont.GetName();
+			pImpl->aText = str_fontpreview_utf;
+//			pImpl->aText.Append(rFont.GetName());
 		if ( !pImpl->aText.Len() )
 			pImpl->aText = GetText();

It alters the font selection dialog so that it would show a sentence instead of
the font name. The rationale behind this is that this way the user gets a
visible feedback whether the actual font contains all the glyphs that his
language needs. In Hungarian we use the "külvízen úszó szárazjégtörő kisjármű"
sentence which shows all the accented latin characters we use and a quick glance
gives back the user the feedback whether the actual font contains all the
Hungarian glyphs he will need. 

I think if we were to clean up this patch, then it should become the default for
all languages. We could make the sample sentence (e.g. The quick brown fox
jumped over the lazy dog) localisable through the l10n framework.
Comment 1 lars 2006-01-22 23:51:00 UTC
according to
RFE_issues_by_QA.sxd I reassign this issue to requirements and set the status 
to New
Comment 2 kami911 2006-05-28 18:28:30 UTC
What about to export the string of "static sal_Char *str_fontpreview="külvízen
úszó szárazjégtörő kisjármű"; " line to the sdf file?