Opened 18 years ago
Last modified 3 years ago
#2301 new defect
default font choice is lost in preferences
Reported by: | levon | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | font | Version: | 1.4.0cvs |
Severity: | normal | Keywords: | |
Cc: | ps, michael.gerz@…, daniel@…, ycollet@…, jan_bac@… |
Description (last modified by )
If I remove ~/.lyx/ then start svn lyx, and open preferences,
then it can't find the fonts chosen by default in the available list,
and defaults to the first one. This used to work on my box at least.
You get:
Apparent font is
Looking at Aharoni CLM
...
FAILED to find the font: ,
qt-3.3.4-15.4
Change History (17)
comment:1 by , 18 years ago
Cc: | added |
---|
comment:2 by , 18 years ago
comment:3 by , 18 years ago
Cc: | added |
---|
comment:5 by , 18 years ago
Do we have some understanding of what happens? Here (mandrake 10.1) the fonts
I have as default are 'Serif', 'Sans' and 'Mono'.
Does the bug happen on systems where these fonts do not exist?
Is this related to settings in qtconfig?
Yann, do you get a similar error on the console? What is the font setting before
you change preview?
comment:6 by , 18 years ago
editing preferences in lyx 1.4.0 and the screen fonts get
turned into the butt-ugly Andale font. Palantino is not even
in the list?
\Martin
comment:7 by , 18 years ago
Cc: | added |
---|
comment:8 by , 17 years ago
Cc: | added |
---|
comment:10 by , 17 years ago
Cc: | removed |
---|
comment:11 by , 17 years ago
Cc: | added |
---|
comment:13 by , 16 years ago
The bug is still present in 1.6-svn.
Komment #3> Does the bug happen on systems where these fonts do not exist?
Exactly.
How to reproduce:
- Open $LYX-HOME/preferences in a text editor and set a screen font to a non-existing value, e.g.
\screen_font_typewriter "Inconsol"
- Start LyX (from a console to see the output)
- Open the Tools/Settings dialogue, the console shows:
GuiPrefs.cpp(299): FAILED to find the default font: , 'Inconsol'
and the typewriter font is set to the first available in the font selection
list (most probably not a monospaces one).
Why is this bad?
Normally, you will not hand-edit preferences to insert an invalid font name, but:
If the default fonts are not available on a system when LyX is first started,
opening the Tools>Preferences dialogue will replace the mising font with the
first from the list.
If starting lyx without console, this goes without feedback.
Saving the preferences, the new (and almost everytime unwanted) font setting
is stored and next time lyx opens with a "strange" font.
Suggestion: Add an invalid selection as greyed out entry to the list of fonts:
it should stay unchanged without user interference but not be available
as a new choice.
comment:14 by , 15 years ago
Component: | frontend-qt2 → frontend-qt4 |
---|---|
Description: | modified (diff) |
Priority: | high → normal |
qt4 related then
comment:15 by , 15 years ago
Component: | frontend-qt4 → font |
---|
comment:16 by , 3 years ago
Cc: | added |
---|
I cannot understand this report. Can anyone else? Do we still have this bug?
comment:17 by , 3 years ago
I cannot understand this report. Can anyone else?
I think the problem is on systems where default 'Serif', 'Sans' and 'Mono' request of fonts does not return any font. Then you are left with the first font in the list which would not look good.
How much this happens I have no clue, never personally encountered this problem.
* #2318 has been marked as a duplicate of this bug. *