Bug 89 - Patch to fix FcOpContains for string and langset.
Summary: Patch to fix FcOpContains for string and langset.
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-19 23:51 UTC by James Su
Modified: 2003-05-27 01:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
The patch to fix contains comparison for string and langset. (3.44 KB, patch)
2003-05-19 23:52 UTC, James Su
Details | Splinter Review

Description James Su 2003-05-19 23:51:10 UTC
Hi,
  I wrote a patch to fix the contains comparison for string and langset vars.
Now I can write the match rule like:
   <test name="family" compare="contains">
       <string>Song</string>
   </test>

which will match all families like ZYSong and SongTi, etc.

And the contains comparison for langset is ok now, eg.:
    <test name="lang" compare="contains">
        <string>zh-cn</string>
    </test>

which will match all fonts with zh-cn langset.
Comment 1 James Su 2003-05-19 23:52:29 UTC
Created attachment 46 [details] [review]
The patch to fix contains comparison for string and langset.
Comment 2 James Su 2003-05-27 18:47:40 UTC
Patch applied.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.