Commit Graph

1423 Commits

Author SHA1 Message Date
Akira TAGOH 3c862aad9f Add editing langset feature.
The syntax to add any langset to the langset table looks like:

<match target="scan">
    <test name="family">
        <string>Buggy Sans</string>
    </test>
    <edit name="lang" mode="assign">
        <plus>
            <name>lang</name>
            <langset>
                <string>zh-cn</string>
                <string>zh-tw</string>
            </langset>
        </plus>
    </edit>
</match>

To remove any langset from the langset table:

<match target="scan">
    <test name="family">
        <string>Buggy Sans</string>
    </test>
    <edit name="lang" mode="assign">
        <minus>
            <name>lang</name>
            <langset>
                <string>ja</string>
            </langset>
        </minus>
    </edit>
</match>
2010-12-09 11:40:08 +09:00
Akira TAGOH d975cdda78 Add the range support in blank element 2010-12-09 11:36:26 +09:00
Akira TAGOH 51e352a1bd add some document for range and charset. 2010-12-09 11:32:26 +09:00
Akira TAGOH 857b7efe1e 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>
...
2010-12-09 11:09:24 +09:00
Behdad Esfahbod 0d47cfabd8 Bug 28958 - lang=en matches other langs
Patch from Akira TAGOH.
2010-12-07 18:48:56 -05:00
Behdad Esfahbod 1e7a2a4f6c Fix returned value 2010-12-02 08:13:59 -05:00
Behdad Esfahbod 5aaf466d38 Cleanup copyright notices to replace "Keith Packard" with "the author(s)" 2010-11-10 16:45:42 -05:00
Behdad Esfahbod 1f5c675fed Add more copyright owners 2010-11-10 15:27:10 -05:00
Jeremy Huddleston 039b9fd090 fontconfig.pc.in: Add sysconfdir, localstatedir, and PACKAGE
In the default case, cachedir and confdir will evaluate to something
referencing these other variables (which wouldn't otherwise be defined
in the pkg-config file.

Fixes a regression introduced by 81b542b50f

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
2010-11-06 18:00:49 -07:00
Jeremy Huddleston 81b542b50f fontconfig.pc: Add variables for confdir and cachedir
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-06 16:31:43 -07:00
Behdad Esfahbod caa4bec945 Bug 24729 - [ne_NP] Fix ortho file
Exclude three characters (U+090C..090E) from Nepalese.
2010-09-21 13:18:05 -04:00
Behdad Esfahbod 0a023b24da [fc-lang] Support excluding characters
By prefixing a line by a hyphen/minus sign.  Useful when including
other orth files.
2010-09-21 13:14:55 -04:00
Behdad Esfahbod 52960d05eb Add new public API: FcCharSetDelChar() 2010-09-21 13:14:41 -04:00
Behdad Esfahbod 9d8d0226d9 Bug 29995 - fc-cat does not invoke FcFini() 2010-09-03 08:11:00 -04:00
Behdad Esfahbod 25afea879d Add comments 2010-08-18 11:31:31 -04:00
Behdad Esfahbod c2764d959c Bug 29338 - fc-pattern.sgml, open para tag 2010-08-05 15:58:09 -04:00
Alan Coopersmith 7836684446 Fix compiler warnings 2010-06-02 22:38:19 -04:00
Behdad Esfahbod ba7b50ab33 Add fc-pattern cmdline tool 2010-04-20 23:18:00 -04:00
Behdad Esfahbod ac5a233643 Fix comment 2010-04-12 12:49:53 -04:00
Behdad Esfahbod 594dcef0f3 Remove all training whitespaces 2010-04-12 12:19:05 -04:00
Behdad Esfahbod d0d1f3904c More whitespace 2010-04-12 12:10:05 -04:00
Behdad Esfahbod 2b0f3f1128 Whitespace 2010-04-12 11:52:09 -04:00
Behdad Esfahbod 632612b810 Accept TT_PLATFORM_MICROSOFT, TT_MS_ID_SYMBOL_CS from name table
The OT spec says:

"When building a Unicode font for Windows, the platform ID should be 3 and the
encoding ID should be 1. When building a symbol font for Windows, the platform
ID should be 3 and the encoding ID should be 0."

We were ignoring the SYMBOL_CS entry before.  It's UTF-16/UCS-2 like the
UNICODE_CS.

Also, always use UTF-16BE instead of UCS-2BE.  The conversion was doing
UTF-16BE anyway.
2010-04-07 12:49:30 -04:00
Behdad Esfahbod 300b495dc4 Don't include unistd.h in fontconfig.h
Bug 26783 patch: unistd.h not exist on ms windows
2010-03-03 13:26:55 -05:00
Behdad Esfahbod 111e5b6d69 Bug 25152 Don't sleep(2) if all caches were uptodate 2010-02-26 01:47:56 -05:00
Behdad Esfahbod 3cd1e673a9 Bug 26157 Solaris/Sun C 5.8: compilation of 2.8.0 and 2.7.3 fails 2010-02-25 17:11:14 -05:00
Behdad Esfahbod 2c93614ea0 Bug 18886 installation crashes if fontconfig already installed
Run the uninstalled fc-cache, not the installed one.
2010-02-25 15:10:41 -05:00
Behdad Esfahbod 2e375b6894 More doc typo fixes 2010-02-14 20:27:22 -05:00
Behdad Esfahbod 77be30cb9f Fix doc typo 2010-02-14 20:20:00 -05:00
Behdad Esfahbod d635132505 Add note about autogen.sh to INSTALL 2010-01-26 12:45:09 -05:00
Behdad Esfahbod 0dbbf9f20b Update INSTALL 2010-01-26 12:43:51 -05:00
Behdad Esfahbod af4a82863f Bug 25508 configure assumes bash > 2.0 is on system
Remove dolt.  With libtool2, there's not much need for dolt.
2009-12-08 21:15:15 -05:00
Behdad Esfahbod aabe0f9d7d [doc] Fix typo 2009-11-30 16:09:55 -05:00
Behdad Esfahbod 38bd85b83b [fc-cache] Document -r argument in man page 2009-11-20 18:44:04 -05:00
Behdad Esfahbod 4a3bef8ac3 Bump version to 2.8.0 2009-11-18 18:49:09 -05:00
Behdad Esfahbod 2e44cbe1b9 Bump libtool revision in preparation for release 2009-11-18 18:49:09 -05:00
Tor Lillqvist 91a73751dc Improve zip "distribution"
Don't put entries for directories in the zip file. Fetch manpages from
correct place.
2009-11-18 21:56:16 +02:00
Tor Lillqvist bb8fdae8ad Use correct autoconf variable
Use LIBT_CURRENT_MINUS_AGE instead of the undefined
lt_current_minus_age for the name of the DLL when generating the MS
style import library.
2009-11-18 21:55:39 +02:00
Behdad Esfahbod 1845f3100d [fc-arch] Rename architecture names to better reflect what they are
We only care about three properties in the arch:

  - endianness
  - pointer size
  - for 32-bit archs, whether double is aligned on 4 or 8 bytes

This leads to the following 6 archs (old name -> new name):

	x86    -> le32d4
	mipsel -> le32d8
	x86-64 -> le64
	m68k   -> be32d4
	ppc    -> be32d8
	ppc64  -> be64
2009-11-18 14:39:34 -05:00
Behdad Esfahbod d5ebf48e34 [fc-arch] Beautify the arch template 2009-11-18 14:15:12 -05:00
Behdad Esfahbod d074706b50 [fc-case] Update CaseFolding.txt to Unicode 5.2.0 2009-11-18 09:40:11 -05:00
Behdad Esfahbod 13781ba00b [fc-glyphname] Remove Adobe glyphlist
It was unused.
2009-11-18 09:36:23 -05:00
Behdad Esfahbod d2fb683796 Clean up Makefile's a bit 2009-11-18 09:35:40 -05:00
Behdad Esfahbod 192927225c [fc-glyphname] Rename internal arrays to prefix with _fc_
Although they were static, I was still surprised that gdb was seeing
our variable "glyphs".  Not helpful.
2009-11-18 09:26:24 -05:00
Behdad Esfahbod 3e5e83e12e [src] Create fcglyphname.h automatically 2009-11-18 09:26:01 -05:00
Behdad Esfahbod 040c98bcc4 [fc-glyphname] Cleanup Makefile.am 2009-11-18 09:25:42 -05:00
Behdad Esfahbod 77f4e60a32 Remove bogus comment
Last night in between my dreams I also noticed that we support Unicode
values up to 0x01000000 and not 0x00100000 which I thought before.
This covers the entire Unicode range.
2009-11-18 09:10:05 -05:00
Behdad Esfahbod a90a3ad97a Make sure fclang.h and fcarch.h are built 2009-11-17 12:10:01 -05:00
Behdad Esfahbod a3b2426819 [lang] Fix serializing LangSet from older versions 2009-11-16 18:29:26 -05:00
Behdad Esfahbod 8480c6f863 [arch] Try to ensure proper FcLangSet alignment in arch 2009-11-16 17:46:18 -05:00