Re: Making Aliases Conditional
- To: Infinality <infinality@xxxxxxxxxxxxxx>
- Subject: Re: Making Aliases Conditional
- From: Behdad Esfahbod <behdad@xxxxxxxxxx>
- Date: Thu, 01 Dec 2011 20:37:24 -0500
- Cc: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Delivered-to: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=P6iR1R3KwKMRag+ffzwQfltxHOfdTWrvr5RBf1bFbKw=; b=m2Bu7wn+Nfamt0RtwFs8SObgij6exl83EXuLuP2b0NMNoaQOVrNCGu8qQbUeQw+Hhc 3vOP67wMERE2Y9LPZWS46aJkdCnjeR6QimmYTRgeSpx5Ee9HML83A/Us+hWecMlSFTl0 QVXFjx2t6rzt93RcXEVAIQ9y0HiFQFoSrUDQI=
- In-reply-to: <4ED289B4.7010709@infinality.net>
- References: <4ED289B4.7010709@infinality.net>
- User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.24) Gecko/20111103 Thunderbird/3.1.16
Hey,
I know aliases don't work in that situation. But aliases are just sugar for
match/edit sequences. If you expand it to what it means, it should work
conditionally. Please look around for the details. Or someone else may offer it.
behdad
On 11/27/2011 02:04 PM, Infinality wrote:
> (apologies if this is a duplicate email)
>
> I am wondering if it is possible to make alias definitions (and other things?)
> conditional on some sort of test with a <match> or something else. For example:
>
> <match target="font" >
> <test name="rendering_style" qual="any" >
> <string>style1</string>
> <string>style2</string>
> </test>
> <alias>
> <family>serif</family>
> <prefer>
> <family>Font Name 1</family>
> <family>Font Name 2</family>
> </prefer>
> </alias>
> </match>
>
> The goal here would be to only assign the alias stuff when the value for
> rendering_style is style1 or style2. In practice, I've confirmed that this
> block of xml will in fact /always/ assign the alias, regardless of the test.
> I see that the definition for <match> requires a <test> and <edit>, not a
> <test> and <something else>, so it's not surprising that it doesn't work.
>
> But, is there a way to accomplish what I want? And within a single file?
> (i.e. not having to manually split and do symlinks)
>
> Thanks,
> Erik
>
> _______________________________________________
> Fontconfig mailing list
> Fontconfig@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[Fedora Users]
[Fedora Cloud]
[Kernel]
[Fedora Legacy]
[Fedora Packaging]
[Fedora Desktop]
[PAM]
[Red Hat Development]
[Red Hat 9]
[Gimp]
[Yosemite News]