If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

RFE: Use XLFD matrix transformation to generate italic/oblique versions if font family does not have that style

NEW
Assigned to

Status

()

Core
XUL
--
enhancement
15 years ago
8 years ago

People

(Reporter: Roland Mainz, Assigned: Roland Mainz)

Tracking

Trunk
All
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

15 years ago
RFE: Use XLFD matrix transformation to generate italic/oblique versions if font
family does not have that style.

Some font families (like Solaris 2.8's gb18030-2000 font 
-fangzheng-song-medium-r-normal--0-0-0-0-m-0-gb18030.2000-*) do not have special
italic/oblique versions.
It may be usefull to "emulate" italic&co. by using a transformation matrix on
the same font to generate the missing styles.

Comment 1

15 years ago
Interesting idea.

Does anyone know if matrix transformated fonts are attractive or unattractive?

Do we know if X servers support this?

An alternate to matrix tranformation could be AA transformed glyphs.

Comment 2

15 years ago
Roland: should this bug be assigned to you?

Comment 3

15 years ago
-> Roland.Mainz@informatik.med.uni-giessen.de
Assignee: jaggernaut → Roland.Mainz
QA Contact: jrgm → Roland.Mainz
(Assignee)

Comment 4

15 years ago
Brian Stell wrote:
> Does anyone know if matrix transformated fonts are attractive or unattractive?

Outline font quality should AFAIK not suffer if a transformation matrix gets
applied - but bitmap fonts may not like all transformations (for example:
rotation by 90° looks fine, rotation by 97° doesn't look very good (with small
bitmap fonts)). Finding good values for the matrix to may require some
testing...

> Do we know if X servers support this?

Transformation matrix support was added in X11R6 which is AFAIK the standard for
all modern X11 implementations (even plain old Solaris 2.6 supports it).

> An alternate to matrix tranformation could be AA transformed glyphs.

Ugh. The problem is that we would have to implement our own matrix
transformation code in Mozilla...
(Assignee)

Comment 5

15 years ago
Brian Stell wrote:
> should this bug be assigned to you?

Sure, I can take it...
... but I need a way to figure out if a font family alreads has an
italic/oblique version of the font or not.

Any ideas ?

Comment 6

15 years ago
in nsFontNode::FillStyleHoles() the code "finds" a substitute for missing
italic fonts
(Assignee)

Comment 7

15 years ago
Brian Stell wrote:
> in nsFontNode::FillStyleHoles() the code "finds" a substitute for missing
> italic fonts

... that place would mean we would have to keep a copy of the decomposed XLFD
somewhere around (we need it to build a new XLFD with the transformation matrix
applied) ... ;-(

Comment 8

15 years ago
or separate out the code that decomposes the XLFD so it can be shared by both
GetFontNames() and your new code.
QA Contact: roland.mainz → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.