summaryrefslogtreecommitdiff
path: root/fc-lang
AgeCommit message (Collapse)AuthorFilesLines
2007-10-25Add/fix *.orth files for South African languagesDwayne Bailey7-6/+129
This adds the missing orth files for Ndebele (South) (nr), Northern Sotho (nso), Swati (ss) and Southern Sotho (st). It also fixes the Tswana (tn) orth file.
2007-10-25There is no U+1257 (bug 10899).Keith Packard1-1/+1
The Eritrean Tigrinya orthography mistakenly included this unicode value.
2007-10-24Leave generated headers out of distribution (bug 12734).Keith Packard1-3/+1
If the generated header files are included in the distribution, a build outside of the source directory will use them. For machine-specific files, this generates the wrong result (fcarch.h). Leaving them out of the distribution forces them to be built.
2007-10-18Place language name in constant array instead of pointer.Keith Packard1-1/+1
Constant char array of 8 bytes is the same size as a pointer plus a short string, so this actually saves memory and eliminates a pile of relocations.
2006-09-05Eliminate .so PLT entries for local symbols. (thanks to Arjan van de Ven)Keith Packard2-2/+8
Using a simple shell script that processes the public headers, two header files are constructed that map public symbols to hidden internal aliases avoiding the assocated PLT entry for referring to a public symbol. A few mistakes in the FcPrivate/FcPublic annotations were also discovered through this process
2006-09-04Oops, fc-lang broke when I added cache referencing.Keith Packard1-0/+10
Add FcCacheObjectReference/FcCacheObjectDereference stubs to fc-cache.
2006-09-03Remove all .cvsignore filesKeith Packard1-6/+0
2006-09-01Add Assamese orthography (as.orth). Bug #8050Keith Packard2-1/+29
Behdad Esfahbod says Assamese is the same as Bengali, so this just uses bn.orth.
2006-09-01Chinese/Macau needs the Hong Kong orthography instead of Taiwan (bug 7884)Keith Packard1-2/+7
From Abel Cheung: Currently zh_mo.orth includes zh_tw.orth, which means it is assumed Macau only uses traditional Chinese characters used in Taiwan; however that is wrong, as a majority of Macau people speaks Cantonese too, and also uses additional traditional Chinese chars from Hong Kong (there are already some place names that can't be represented in just chars used in Taiwan). So it should include zh_hk.orth instead.
2006-09-01Fix fc-lang to use new charset freezer API.Keith Packard1-12/+18
Charset freezer api now uses allocated object. Also required minor fixes to charset freezer code to remove assumption that all input charsets are persistant.
2006-08-30Fix build problems caused by cache rework.Keith Packard1-0/+1
Pagesize no longer matters in architecture decisions, the entire cache file is mmaped into the library. However, lots of intptr_t values are in use now, so that value is important. fc-lang now requires fcserialize.c, which has been added to the repository.
2006-08-30Rework cache files to use offsets for all data structures.Keith Packard1-95/+90
Replace all of the bank/id pairs with simple offsets, recode several data structures to always use offsets inside the library to avoid conditional paths. Exposed data structures use pointers to hold offsets, setting the low bit to distinguish between offset and pointer. Use offset-based data structures for lang charset encodings; eliminates separate data structure format for that file. Much testing will be needed; offsets are likely not detected everywhere in the library yet.
2006-04-11Properly convert static charsets to dynamic charsets.Patrick Lam1-0/+3
Fix memory leak in error case (Coverity defects #1820, #1821, #1822). Fix memory leak (Coverity defect #1819). prevent crash when invalid include line is parsed (Coverity defect #763). Fix potential null pointer access (Coverity defect #1804). Remove dead code (Coverity defect #1194). Prevent potential null pointer access (Coverity defect #767), ensure error value is read (Coverity defect #1195). reviewed by: plam
2006-04-10Include more stub definitions to make HP-UX's C compiler happy.Patrick Lam1-0/+3
2006-04-07SGI compilation fixes (reported by Christoph Bauer):Patrick Lam1-1/+1
1) reorder union definition of _FcChar; 2) omit .stats =.
2006-04-06Fix intel compiler warnings: make many variables static, eliminatePatrick Lam1-4/+4
duplicate names, reduce variable scopes, unsigned/signed printf formatting. reviewed by: plam
2006-03-15Fix typos in orth files. Reported by Denis Jacquerye.Patrick Lam2-2/+2
2006-03-08Add orthography for Lingala.Patrick Lam3-2/+45
reviewed by: plam
2006-02-22Strip \r and whitespace from input; fixes bug 3454.Patrick Lam1-4/+7
2006-02-22Allocate large arrays statically in fc-lang to fix crashes underPatrick Lam1-9/+9
MinGW/MSYS.
2006-02-21Remove one more archaic character.Patrick Lam1-1/+1
reviewed by: plam
2006-02-07Fix hidden variable warning.Patrick Lam10-4/+12
2006-01-30Remove references to dead fontconfig(3) manpages in other fontconfigPatrick Lam1-2/+0
manpages. reviewed by: plam
2006-01-25Treat zh-hk fonts differently from zh-tw fonts. This patch may causePatrick Lam1-1/+1
fontconfig to treat A-X fonts differently from A-Y fonts; please mail the fontconfig list if this causes any problems. reviewed by: plam
2005-11-29Refactor FcCacheBankToIndex into an inlineable part (in fcint.h) whichPatrick Lam1-1/+4
checks the front of the list and a non-inlineable part which finds and moves the appropriate element to the front of the list. reviewed by: plam
2005-11-19Further fix of patch from 2005-11-04: miscounted numbers countPatrick Lam1-8/+13
(numbers_count); didn't strip duplicate numbers (langBankNumbers); and leafidx_offset and numbers_offset in fcLangCharSets are wrong. Removed leafidx_count and numbers_count since they are the same and replaced them with offset_count. reviewed by: plam
2005-11-04Fix bug 2878 (excessive relocations at startup for charsets, reported byPatrick Lam1-16/+43
Ross Burton): fc-lang/fc-lang now creates the static form of the langset, not the dynamic form, so that the charsets should now be in .rodata.
2005-09-23Small patch for output in case where lineno not defined.Patrick Lam1-1/+1
2005-09-22Fix more gcc4 warnings:Patrick Lam1-7/+13
- Cast sizeof to int, to shut up signedness warnings in comparison. - Add consts where appropriate. reviewed by: Patrick Lam <plam@mit.edu>
2005-09-11Merge with HEAD and finish the GCC 4 cleanups (no more warnings!)Patrick Lam1-1/+1
2005-08-24Overhaul the serialization system to create one mmapable file per directoryPatrick Lam1-2/+2
and distribute bytes for each directory from a single malloc for that directory. Store pointers as differences between the data pointed to and the pointer's address (s_off = s - v). Don't serialize data structures that never actually get serialized. Separate strings used for keys from strings used for values (in FcPatternElt and FcValue, respectively). Bump FC_CACHE_VERSION to 2.
2005-07-25#ifdef out old cache stuff, replace with first version of new mmappingPatrick Lam1-0/+6
cache. Add *Read and *Write procedures which mmap in and write out the fontconfig data structures to disk. Currently, create cache in /tmp, with different sections for each architecture (as returned by uname's .machine field. Run the fc-cache binary to create a new cache file; fontconfig then uses this cache file on subsequent runs, saving lots of memory. Also fixes a few bugs and leaks.
2005-06-28Add functionality to allow fontconfig data structure serialization.Patrick Lam1-9/+8
This patch allows the fundamental fontconfig data structures to be serialized. I've converted everything from FcPattern down to be able to use *Ptr objects, which can be either static or dynamic (using a union which either contains a pointer or an index) and replaced storage of pointers in the heap with the appropriate *Ptr object. I then changed all writes of pointers to the heap with a *CreateDynamic call, which creates a dynamic Ptr object pointing to the same object as before. This way, the fundamental fontconfig semantics should be unchanged; I did not have to change external signatures this way, although I did change some internal signatures. When given a *Ptr object, just run *U to get back to a normal pointer; it gives the right answer regardless of whether we're using static or dynamic storage. I've also implemented a Fc*Serialize call. Calling FcFontSetSerialize converts the dynamic FcFontSets contained in the config object to static FcFontSets and also converts its dependencies (e.g. everything you'd need to write to disk) to static objects. Note that you have to call Fc*PrepareSerialize first; this call will count the number of objects that actually needs to be allocated, so that we can avoid realloc. The Fc*Serialize calls then check the static pointers for nullness, and allocate the buffers if necessary. I've tested the execution of fc-list and fc-match after Fc*Serialize and they appear to work the same way.
2005-05-20The ka.orth file requires several characters which are not used anymore inKeith Packard1-2/+3
modern Georgian and which are missing in the free Georgian TrueType fonts downloadable at: http://aiet.qartuli.net/docs/georgian_on_linux_en.php reviewed by: Mike Fabian Bug: 3352
2005-01-13Add SEE ALSO section (bug 2085)Keith Packard1-2/+6
Cross compiling fixes (bug 280) reviewed by: Keith Packard <keithp@keithp.com>
2004-12-29Add territory databaseKeith Packard2-16217/+2754
Reviewed by: Keith Packard Remove Han characters from Korean orthography
2004-12-09Currently Russian (ru) requires 0406 and 0456 (І and і), but these wereKeith Packard1-2/+2
eliminated in Russian in 1918 in favor of 0418 and 0438 (И and и), and don't even appear in KOI8-R. (The hypothesis that they don't appear in KOI8-R due to their similarity with Latin I and i is eliminated by their presence in KOI8-U.) I have a couple of fonts with Russian support that don't have the letter. Therefore, 0406 and 0456 should be removed from or commented out of ru.orth reviewed by: Keith Packard <keithp@keithp.com>
2004-12-07Change files from ISO-Latin-1 to UTF-8Keith Packard187-294/+294
2004-12-05Sleep for two seconds before exiting to make sure timestamps for futureKeith Packard1-0/+46
changes have distinct mod times in the file system. Bug #1982. Add Punjabi orthography. Bug #1671. reviewed by: Keith Packard <keithp@keithp.com>
2004-12-04Move existing fonts.conf to fonts.conf.bakKeith Packard1-1/+1
Add detection of iconv Document new selectfont elements Switch to UTF-8 in comment Add fullname, and family/style/fullname language entries Respect selectfont/*/glob Add support for selectfont Add multi-lingual family/style/fullname support Expose FcListPatternMatchAny (which selectfont/*/pattern uses) Add new FcPatternRemove/FcPatternAppend. FcObjectStaticName stores computed pattern element names which are required to be static.
2004-04-14Add instructions for doing a releasefc-2_2_93Keith Packard2-2/+2
clean up .spec file; perhaps this will be useful to somebody... Update to 2.2.93 Make 'scanopen' static so GCC doesn't whine about lacking prototype Add WARN_CFLAGS to pass -W flags for GCC systems Change various char types around to match across function calls. Fixed bug in using available_sizes[i].height which is in pixels, not 64ths of a pixel.
2004-02-07Add Low Saxon orthography (Kenneth Rohde Christiansen <kenneth@gnu.org>)Keith Packard1-0/+40
Oops. Left 'newest.set' unset, which would miscompute the newest file Add FcGetPixelSize to extract correct pixel size from bdf/pcf font properties (which report the wrong value in current FreeType) Don't attempt to check for empty glyphs in non-scalable fonts; they have no outlines...
2004-01-03Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto (AfghanRoozbeh Pournader5-4/+222
and Pakistani). Updated Urdu orthography with real data.
2003-10-27Yet more cleanups to finish getting 'make distcheck' working This has beenKeith Packard1-3/+2
tested to ensure that it even works from a _build directory.
2003-10-27Attempts to fix 'make distcheck' work. Things are progressing pretty well,Keith Packard2-5/+34
but there are still failures long into the process dealing with docs (as always). The big changes here are mostly to make $(srcdir) != "." work correctly, fixing the docbook related sections and fc-lang were particularily tricky. Docbook refuses to load system entities from anywhere other than where the original .sgml file was located, so no luck looking in "." for the configure-generated version.sgml and confdir.sgml files. fc-lang needed help finding .orth files; added a -d option to set the directory as the least evil of many options. Now to go use a faster machine and try and wring out the last issues.
2003-09-23Remove Georgian capitals, they aren't used for normal writing. (Bug #116)Owen Taylor1-1/+1
2003-05-06Remove 0b82 and Tamil numbers from tamil orthography (Jungshik ShinKeith Packard1-2/+5
<jshin@mailaps.org>)
2003-04-17Solaris porting fixesKeith Packard1-2/+2
2003-03-22Changes for Windows:Tor Lillqvist1-3/+3
On Windows with gcc (a.k.a. mingw) build as a DLL. We don't want to hardcode the fonts.conf file location in the DLL, so we look up the DLL location at run-time in a DllMain() function. The fonts.conf location is deduced from that. The colon can't be used as path separator on Windows, semicolon is used instead. File path components can be separated with either slash or backslash. Absolute paths can also begin with a drive letter. Add internal function FcStrLastSlash that strrchr's the last slash, or backslash on Windows. There is no link() on Windows. For atomicity checks, mkdir a lock directory instead. In addition to HOME, also look for USERPROFILE. Recognize the special font directory token WINDOWSFONTDIR, to use the system's font directory. Remove the fontconfig-def.cpp that was obsolete. Add fontconfig.def(.in), without internal functions. Add a fontconfig-zip(.in) script, used to build a binary distribution.
2003-03-05Add letter ranges to speed lang lookups, change CVS tagKeith Packard3-6/+40