Apache OpenOffice (AOO) Bugzilla – Issue 61008
RFE: Show a sample sentence in the font selection dialog
Last modified: 2013-02-07 22:43:16 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" #ifndef _SFXVIEWSH_HXX #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 str_fontpreview_utf=UniString(ByteString(str_fontpreview),RTL_TEXTENCODING_UTF8); 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.
according to http://qa.openoffice.org/issue_handling/workflowcharts/ RFE_issues_by_QA.sxd I reassign this issue to requirements and set the status to New
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?