On Fri, 2015-10-23 at 22:58 -0200, Behdad Esfahbod wrote: > On 15-10-23 10:42 PM, Jerry Casiano wrote: > > On Fedora 21 using Fontconfig 2.11.94 > > > > I noticed that I get random Fontconfig weight values. Unless it was > > always the case and I just noticed it now by enabling crappy font > > files. But I thought, assumed actually, that Fontconfig would > > always > > clamp/round weights to FC_WEIGHT_* > > > > fc-list : weight > > > > :weight=0 > > :weight=40 > > :weight=45 <-- ? > > :weight=50 > > :weight=75 > > :weight=80 > > :weight=90 <-- ? > > :weight=100 > > :weight=174 <-- ? > > :weight=180 > > :weight=200 > > :weight=205 > > :weight=210 > > :weight=215 > > > > Is this a regression? Or was it always the case? > > It's new. We do this to supports fonts with arbitrary number of > weights. For > example, the Source Han Sans / Noto Sans CJK fonts hit this case. > > b Oh, well, that sucks. Some background, I use FC_WEIGHT_* values to automatically generate the weight category in Font Manager. Since these values don't map to those I end up with duplicate/empty categories now... In any case, thanks for the quick response. I'll have to workaround it some way. _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig