Issue 30611 - Pls. find substitution candidates for the desktop-UI font by utilizing fontconfig
Summary: Pls. find substitution candidates for the desktop-UI font by utilizing fontco...
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 680m41
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: ulf.stroehler
QA Contact: issues@gsl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-23 12:03 UTC by ulf.stroehler
Modified: 2004-08-31 18:24 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ulf.stroehler 2004-06-23 12:03:09 UTC
the curent implementation in vcl22 issue 16683 does not match to a sensible UI
font (at least for the setup) if the desktop system is set to a fontconfig
defined alias as e.g. "Sans". 

Hence ask fontconfig for a substitution/alias list for the desktop UI font and
use the first one found if not an X-font. Else try the next candidate from
fontconfig. If no suitable candidate is found the old font fallback list should
be back in state, beginning with "Andale Sans UI".
Comment 1 philipp.lohmann 2004-06-25 19:06:18 UTC
fixed in CWS vcl22
Comment 2 philipp.lohmann 2004-06-25 22:15:00 UTC
reopen
Comment 3 philipp.lohmann 2004-06-25 22:15:37 UTC
pl->us: please verify in CWS vcl22
Comment 4 philipp.lohmann 2004-06-25 22:15:52 UTC
fixed
Comment 5 ulf.stroehler 2004-06-29 16:52:20 UTC
Verified.

Note: this does not inevitably lead to the same UI font used in OO.o compared
with different applications using fontconfig (as e.g. KDE or GNOME apps.)
Example RH9:
The "Application font" is set to "Sans" in gnome-font-properties dialog
fontconfig returns "Luxi Sans" for "Sans".
But the corresponding afm file declarates the encoding as FontSpecific
Hence for the requested code points* the font can not deliver glyphs
and the font is disregarded as UI (Application) font for OO.o; instead
"Bitstream Vera" resp. "Andale Sans UI" will be used.

(*Refer to
http://specs.openoffice.org/ui_in_general/controls/NativeWidgetRenderingSpec.sxw)
Comment 6 ulf.stroehler 2004-08-31 18:24:20 UTC
Verified in mws src680_m52-4.8802.