[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY
From: |
Eric Rannaud |
Subject: |
Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY |
Date: |
Sun, 20 Nov 2011 14:50:50 -0800 |
Sorry, Gmail mangled the message. Repost, hopefully readable this time.
So I wrote the attached patch for fontconfig, that I will submit to
the fontconfig ML.
With the patch and freetype2, lcdfilter=lcddefault would correspond to:
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcdcustom</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfiltercustom">
<string>.0625 .25 .4375 .25 .0625</string>
</edit>
</match>
But it's not perfect, as users of the fontconfig API would have to
parse the lcdfiltercustom string themselves. I will ask if the
fontconfig developers see a better way of specifying a list of double.
Questions:
- Would there ever be a good reason to not have a symmetric FIR?
Should be the option be specified as ".4375 .25 .0625" (first half,
reverse order) and assume symmetry for the other weights?
- Could the size of the filter be different? Or is 5 likely to be
fairly universal, even for other renderers?
- When specified from the center value ".4375 .25 .0625", missing
values can be assumed to be 0, and extra values can be ignored. I'm
tempted to specify the option this way instead, unless asymmetric
filters are useful.
Thanks.
0001-Add-lcdfiltercustom-option-controls-the-filter-indiv.patch
Description: Text Data
- [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Eric Rannaud, 2011/11/19
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/20
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Infinality, 2011/11/20
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/20
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Eric Rannaud, 2011/11/20
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY,
Eric Rannaud <=
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Infinality, 2011/11/20
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Eric Rannaud, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Erik, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Infinality, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Infinality, 2011/11/21
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Werner LEMBERG, 2011/11/22
- Message not available
- Re: [ft-devel] [RFC] FT_LCD_FILTER_HEAVY, Eric Rannaud, 2011/11/21