]> git.wh0rd.org - fontconfig.git/commit
Add charset editing feature.
authorAkira TAGOH <akira@tagoh.org>
Mon, 6 Dec 2010 03:10:17 +0000 (12:10 +0900)
committerAkira TAGOH <akira@tagoh.org>
Thu, 9 Dec 2010 02:09:24 +0000 (11:09 +0900)
commit857b7efe1e301f670329c6836da52fbab8c5df66
tree6898fae3a366db0cf222f88c308f18d4941c3319
parent0d47cfabd82cd9c02ec5711383f06599b0450ac0
Add charset editing feature.

The syntax to add any characters to the charset table looks like:

<match target="scan">
    <test name="family">
        <string>Buggy Sans</string>
    </test>
    <edit name="charset" mode="assign">
        <plus>
            <name>charset</name>
            <charset>
                <int>0x3220</int>    <!-- PARENTHESIZED IDEOGRAPH ONE -->
            </charset>
        </plus>
    </edit>
</match>

To remove any characters from the charset table:

<match target="scan">
    <test name="family">
        <string>Buggy Sans</string>
    </test>
    <edit name="charset" mode="assign">
        <minus>
            <name>charset</name>
            <charset>
                <int>0x06CC</int>    <!-- ARABIC LETTER FARSI YEH -->
                <int>0x06D2</int>    <!-- ARABIC LETTER YEH BARREE -->
                <int>0x06D3</int>    <!-- ARABIC LETTER YEH BARREE WITH HAMZA ABOVE -->
            </charset>
        </minus>
    </edit>
</match>

You could also use the range element for convenience:

...
            <charset>
                <int>0x06CC</int>    <!-- ARABIC LETTER FARSI YEH -->
                <range>
                    <int>0x06D2</int>    <!-- ARABIC LETTER YEH BARREE -->
                    <int>0x06D3</int>    <!-- ARABIC LETTER YEH BARREE WITH HAMZA ABOVE -->
                </range>
            </charset>
...
fonts.dtd
src/Makefile.am
src/fccfg.c
src/fcdbg.c
src/fcint.h
src/fcxml.c