Font substitution

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Font substitution

Sophie-21

Hi all,

Could you help me to understand what is the fallback when a font type is used in
a document that doesn't exist on the Windows profile on which the document is
edited.
I understand that the font and it's family is described in the content.xml and
styles.xml under the form of :
<style:font-face style:name="MyFont" svg:font-family="'MyFont'"
style:font-family-generic="swiss" style:font-pitch="variable" />.

I thought that the substitution will be done using style:font-family-generic,
which in that case should be something like Arial, but it's not always the case.
On some Windows profiles it seems that the substitution is ok, on other Windows
profiles the document is unreadable, so I'm not able to reproduce what does not
work.
I speak about Windows profiles, because on the same work station, the result
depends of the profile loaded.
Thanks in advance
Kind regards
Sophie


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Font substitution

Herbert Duerr
Hi Sophie,

> Could you help me to understand what is the fallback when a font type is used in
> a document that doesn't exist on the Windows profile on which the document is
> edited.

If the requested font is not available then the configuration file
VCL.xcu is checked. If it suggests a font which is related to the
original font then this is used. If there is no entry there then
attribute based matching is used.

Example: "Chicago" falls back to "Arial"

> I understand that the font and it's family is described in the content.xml and
> styles.xml under the form of :
> <style:font-face style:name="MyFont" svg:font-family="'MyFont'"
> style:font-family-generic="swiss" style:font-pitch="variable" />.

There is of course no entry for "MyFont" in VCL.xcu, so the only other
known fact about this font is used: "Swiss" -> "SansSerif" -> "Arial".

> I thought that the substitution will be done using style:font-family-generic,
> which in that case should be something like Arial, but it's not always the case.
> On some Windows profiles it seems that the substitution is ok, on other Windows
> profiles the document is unreadable, so I'm not able to reproduce what does not
> work.
> I speak about Windows profiles, because on the same work station, the result
> depends of the profile loaded.

Maybe you were impacted by
http://www.openoffice.org/issues/show_bug.cgi?id=110023
A five year old regression which was recently found and it has been
promptly fixed for OOo321.

--
Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Font substitution

Sophie-21
Hi Herbert,
H Duerr wrote:

> Hi Sophie,
>
>> Could you help me to understand what is the fallback when a font type
>> is used in
>> a document that doesn't exist on the Windows profile on which the
>> document is
>> edited.
>
> If the requested font is not available then the configuration file
> VCL.xcu is checked. If it suggests a font which is related to the
> original font then this is used. If there is no entry there then
> attribute based matching is used.
>
> Example: "Chicago" falls back to "Arial"
>
>> I understand that the font and it's family is described in the
>> content.xml and
>> styles.xml under the form of :
>> <style:font-face style:name="MyFont" svg:font-family="'MyFont'"
>> style:font-family-generic="swiss" style:font-pitch="variable" />.
>
> There is of course no entry for "MyFont" in VCL.xcu, so the only other
> known fact about this font is used: "Swiss" -> "SansSerif" -> "Arial".

Ok, thanks this is what I understood.

>
>> I thought that the substitution will be done using
>> style:font-family-generic,
>> which in that case should be something like Arial, but it's not always
>> the case.
>> On some Windows profiles it seems that the substitution is ok, on
>> other Windows
>> profiles the document is unreadable, so I'm not able to reproduce what
>> does not
>> work.
>> I speak about Windows profiles, because on the same work station, the
>> result
>> depends of the profile loaded.
>
> Maybe you were impacted by
> http://www.openoffice.org/issues/show_bug.cgi?id=110023
> A five year old regression which was recently found and it has been
> promptly fixed for OOo321.

Great, thanks a lot for your prompt answer and fix :-)

Kind regards
Sophie

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]