On Sun, Nov 24, 2002 at 11:53:32PM +0100, Lars Gullik Bj?nnes wrote:
> I belive the fault is at the xforms side actually, in that we are way
> to low-level in the lyxrc file, i.e. "-*-times". We should to the same
> with the xforms frontend that has been done in qt, have a style
> "Times" and a foundry "*".
> 
> And this is what we should store in the lyxrc file.

Do you mean that in lyxrc we should store two variable for each font:
family & foundary (e.g. roman_font_family/roman_font_foundry) ?
Also, should we use in the preferences file:
  \screen_font_roman & \screen_font_roman_foundry
or 
  \screen_font_roman_family & \screen_font_roman_foundry

> So now we need some changes to the xforms gui, some compability
> code... and that should be it... kindo...

Here is what should be done:
1. In lyxrc.C, we should be able to read old preferences file
(or perhaps we should write a preferences file converter ?).

2. In the frontend font loader, the code should combine the family &
foundry to the appropriate format:
-foundry-family   in xforms (or -*-family in foundry is empty)
family-foundry   in QT2 (or family if foundry is empty)
family [foundry] in QT3 ("")

3. In the QT preferences dialog, we should convert between family,foundry
pair and the formats above when setting or reading the font combox.

4. What should be done in the XForms dialog ?
The alternatives are:
- For each font, replace the text input widget by a combox like the QT 
preferences dialog.
- Create two text input widgets for each font.
- Leave the dialog unchanged, but allow writing either
"family" or "-foundary-family" in the dialog input widget.

I'll try implementing this later today.

Reply via email to