Opened 18 years ago

Last modified 3 years ago

#2301 new defect

default font choice is lost in preferences

Reported by: levon Owned by: nobody@…
Priority: normal Milestone:
Component: font Version: 1.4.0cvs
Severity: normal Keywords:
Cc: ps, michael.gerz@…, daniel@…, ycollet@…, jan_bac@…

Description (last modified by ps)

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 levon, 18 years ago

Cc: daniel@… added

comment:2 by levon, 18 years ago

* #2318 has been marked as a duplicate of this bug. *

comment:3 by lasgouttes, 18 years ago

Cc: ycollet@… added

comment:4 by lasgouttes, 18 years ago

* #2367 has been marked as a duplicate of this bug. *

comment:5 by lasgouttes, 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 mail@…, 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 rdieter@…, 18 years ago

Cc: rdieter@… added

comment:8 by Georg Baum, 17 years ago

Cc: michael.gerz@… added

comment:9 by Georg Baum, 17 years ago

* #3274 has been marked as a duplicate of this bug. *

comment:10 by rdieter@…, 17 years ago

Cc: rdieter@… removed

comment:11 by Juergen Spitzmueller, 17 years ago

Cc: jan_bac@… added

comment:12 by Juergen Spitzmueller, 17 years ago

* #4016 has been marked as a duplicate of this bug. *

comment:13 by milde@…, 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 ps, 15 years ago

Component: frontend-qt2frontend-qt4
Description: modified (diff)
Priority: highnormal

qt4 related then

comment:15 by ps, 15 years ago

Component: frontend-qt4font

comment:16 by Richard Kimberly Heck, 3 years ago

Cc: ps added

I cannot understand this report. Can anyone else? Do we still have this bug?

comment:17 by ps, 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.

Note: See TracTickets for help on using tickets.