Configuration problem

View: New views
4 Messages — Rating Filter:   Alert me  

Configuration problem

by Ingo Brueckl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I need some help with configuration because I'm unfamiliar with (and somehow
can't get used to) fontconfig's kind of configuration files.

Here is my problem: I'm using a truetype font name A. This font is great, but
unfortunately gets ugly when rendered in bold. There is a font B which is
similiar to A and available in good bold quality. What I like to do now, is:
Use A whenever requested style is 'normal' and B else.

So I need a configuration for:

  if (family == A)
  {
    if (style == normal) return A;
    else return B;
  }

Can someone please help.

Ingo
_______________________________________________
Fontconfig mailing list
Fontconfig@...
http://lists.freedesktop.org/mailman/listinfo/fontconfig

Configuration problem

by Ingo Brueckl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Really nobody familiar with the config file syntax?

Even no idea whether it is possible or not what I want to do?

Ingo
_______________________________________________
Fontconfig mailing list
Fontconfig@...
http://lists.freedesktop.org/mailman/listinfo/fontconfig

Re: Configuration problem

by Krzysztof Kotlenga-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ingo Brueckl wrote:

> Really nobody familiar with the config file syntax?

I wasn't subscribed back then ;)

> Even no idea whether it is possible or not what I want to do?

It is. Just a quick example for you.

<match target="pattern">
  <test name="family"><string>Times New Roman</string></test>
  <test name="weight" compare="more_eq"><const>bold</const></test>
  <edit name="family" mode="prepend"><string>Arial</string></edit>
</match>

--
The fact is, most software is crap, and most software developers
are lazy and stupid. Same as most customers are stupid too.
                         -- Hua Zhong, Linux Kernel Mailing List
_______________________________________________
Fontconfig mailing list
Fontconfig@...
http://lists.freedesktop.org/mailman/listinfo/fontconfig

Configuration problem

by Ingo Brueckl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Krzysztof Kotlenga writes:

 > It is. Just a quick example for you.
 > <match target="pattern">
 >   <test name="family"><string>Times New Roman</string></test>
 >   <test name="weight" compare="more_eq"><const>bold</const></test>
 >   <edit name="family" mode="prepend"><string>Arial</string></edit>
 > </match>

Thank you so much, you made my day!

It actually only worked with mode="assign" (no idea why), but it worked.

Ingo
_______________________________________________
Fontconfig mailing list
Fontconfig@...
http://lists.freedesktop.org/mailman/listinfo/fontconfig