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
52960d05eb
Add new public API: FcCharSetDelChar()
2010-09-21 13:14:41 -04:00
Behdad Esfahbod
25afea879d
Add comments
2010-08-18 11:31:31 -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
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
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
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
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
Behdad Esfahbod
dffcb2a083
[xml] Remove unused code
2009-11-16 17:46:18 -05:00
Behdad Esfahbod
b2d9101230
[int] Remove more unused macros
2009-11-16 17:46:18 -05:00
Behdad Esfahbod
963820fcbf
[int] Remove fc_value_* macros that did nothing other than renaming
2009-11-16 17:46:18 -05:00
Behdad Esfahbod
888f9427ae
[int] Remove fc_storage_type() in favor of direct access to v->type
2009-11-16 17:46:18 -05:00
Behdad Esfahbod
486fa46893
Remove unused macros
2009-11-16 17:46:18 -05:00
Behdad Esfahbod
1f4e6fecde
Bump cache version up from 2 to 3 and fix FcLangSet caching/crash
...
Protect cache against future expansions of FcLangSet (adding new
orth files). Previously, doing so could change the size of
that struct. Indeed, that happened between 2.6.0 and 2.7.3, causing
crashes. Unfortunately, sizeof(FcLangSet) was not checked in fcarch.c.
This changes FcLangSet code to be able to cope with struct size changes.
And change cache format, hence bumping from 2 to 3.
2009-11-16 17:46:12 -05:00
Behdad Esfahbod
6b1fc678ca
[int] Define MIN/MAX/ABS macros
2009-11-16 17:28:50 -05:00
Behdad Esfahbod
8009229bc5
Move FcAlign to fcint.h
2009-11-16 15:12:52 -05:00
Behdad Esfahbod
5e544b32d8
Use default config in FcFileScan() and FcDirScan()
...
Before a NULL config was passed down adn essentially FcFileScan was
equivalent to FcFreeTypeQuery. Now fc-scan tool correctly applies
the configuration to the scanned patterns.
2009-09-06 22:10:22 -04:00
Behdad Esfahbod
c5f0a65b36
Revert "Fix FcNameUnparseLangSet()" and redo it
...
This reverts commit 5c6d1ff23b
and
fixes that bug using the new reverse-map I added in the previous
commit.
2009-08-25 20:41:34 -04:00
Behdad Esfahbod
d354a321ee
Bug 23419 - "contains" expression seems not working on the fontconfig rule
...
Fix bug in FcLangSetContains(), similar to
5c6d1ff23b
2009-08-25 20:39:20 -04:00
Behdad Esfahbod
f33a23133e
Bug 22037 - No Fonts installed on a default install on Windows Server 2003
...
Make it easy to install on older Windows
2009-08-21 13:41:41 -04:00
Tor Lillqvist
8b1ceef0b7
Use multi-byte codepage aware string function on Windows
...
The East Asian double-byte codepages have characters with backslash as
the second byte, so we must use _mbsrchr() instead of strrchr() when
looking at pathnames in the system codepage.
2009-08-13 18:19:56 -04:00
Tor Lillqvist
d15678127a
Fix heap corruption on Windows in FcEndElement()
...
Must not call FcStrFree() on a value returned by
FcStrBufDoneStatic(). In the Windows code don't bother with dynamic
allocation, just use a local buffer.
2009-08-13 18:17:33 -04:00
Tor Lillqvist
a1b6e34a9a
Fix MinGW compilation
...
Need to define _WIN32_WINNT as 0x0500 to get declaration for
GetSystemWindowsDirectory().
2009-08-13 18:13:04 -04:00
Behdad Esfahbod
7c12181f7a
Improve charset printing
2009-07-28 14:23:10 -04:00
Behdad Esfahbod
7575c66661
TT_MS_ID_UCS_4 is really UTF-16BE, not UTF-32
...
Reported by Yuriy Kaminskiy.
2009-07-25 16:38:52 -04:00
Behdad Esfahbod
5c6d1ff23b
Fix FcNameUnparseLangSet()
...
Was broken since ffd6668b46
2009-07-22 19:25:24 -04:00
Behdad Esfahbod
d9741a7f1a
Remove unused macros
2009-07-22 19:01:06 -04:00
Karl Tomlinson
792ce655cb
Don't change the order of names unnecessarily ( #20128 )
...
so that TT_NAME_ID_PREFERRED_FAMILY is consistently preferred over
TT_NAME_ID_FONT_FAMILY when both are specified for the default language.
2009-07-22 08:39:23 -04:00
Behdad Esfahbod
327fc9d183
Use GetSystemWindowsDirectory() instead of GetWindowsDirectory() ( #22037 )
2009-07-21 15:41:47 -04:00
Behdad Esfahbod
16e55c7c85
Fix leak with string VStack objects
2009-07-20 16:30:12 -04:00
Behdad Esfahbod
55e202a62d
Remove unused ftglue code
2009-06-28 14:14:46 -04:00
Behdad Esfahbod
57cf838ccc
Fix win32 build
2009-06-28 13:46:41 -04:00
Behdad Esfahbod
3164ac7622
[xml] Intern more strings
2009-06-24 13:52:13 -04:00
Behdad Esfahbod
390c05e64a
[xml] Allocate FcExpr's in a pool in FcConfig
...
Reduces number of malloc's for FcExprs from hundreds into single digits.
2009-06-24 13:52:13 -04:00
Behdad Esfahbod
398d436441
[xml] Mark more symbols static
2009-06-24 13:52:13 -04:00
Behdad Esfahbod
a96ecbfa20
[xml] Centralize FcExpr allocation
...
To be improved, using a central pool.
2009-06-24 13:52:13 -04:00
Behdad Esfahbod
5aebb3e299
Remove unused prototypes and function
2009-06-24 13:52:12 -04:00
Behdad Esfahbod
900723f3d2
[charset] Grow internal FcCharset arrays exponentially
2009-06-24 13:52:12 -04:00
Behdad Esfahbod
cce69b07ef
Always set *changed in FcCharsetMerge
2009-06-24 13:52:12 -04:00