summaryrefslogtreecommitdiff
path: root/src/fcobjs.h
Commit message (Collapse)AuthorAgeFilesLines
* Add FC_DESKTOP_NAME propertyAkira TAGOH2022-11-261-0/+1
| | | | To allow users to have desktop-specific matching rule.
* Add FC_ORDER property into cacheAkira TAGOH2020-05-251-0/+1
| | | | | | | | | | "fontversion" used to be modified to sort out fonts as a technique. But that lost the original purpose to do the version control between releases. This change adds the dedicated property into the cache. Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/226
* Affect FC_FONT_HAS_HINT property to score on matcherAkira TAGOH2019-08-091-1/+1
|
* Add FC_FONT_HAS_HINT property to see if font has hinting or not.Akira TAGOH2019-07-291-0/+1
| | | | This may helps to enable autohint only when font doesn't have any hinting
* Add separate match compare function for sizeBehdad Esfahbod2017-09-201-1/+1
| | | | | | Has two distinctions from FcCompareRange(): 1. As best value, it returns query pattern size, even if it's out of font range, 2. Implements semi-closed interval, as that's what OS/2 v5 table defines
* [varfonts] Change FC_WEIGHT and FC_WIDTH into rangesBehdad Esfahbod2017-09-201-2/+2
|
* [varfonts] Add FC_VARIABLEBehdad Esfahbod2017-09-201-0/+1
| | | | For now, we mark all fonts as non-variable.
* [varfonts] Add FC_FONT_VARIATIONSBehdad Esfahbod2017-09-201-0/+1
| | | | | | | | | This is for clients to passthru font variation settings. Modeled similar to FC_FONT_FEATURES. Each element value is for one axis settings, eg. "abcd=2.3" where 'abcd' is the OpenType Font Variations axis tag. Needs docs update.
* Rename FcCompareSizeRange() to FcCompareRange()Behdad Esfahbod2017-09-201-1/+1
|
* Remove FcCompareSize()Behdad Esfahbod2017-09-201-1/+1
| | | | | | | Use FcCompareNumber(). The FcCompareSize() returns 0 ("perfect match") if v2 is zero. I cannot think of a use-case for this. The code has been there from initial commit in 2002. I suppose back then Keith had a use for size=0 to mean scalable or something. Anyway, remove and see.
* Avoid conflicts with integer width macros from TS 18661-1:2014Khem Raj2016-12-201-1/+1
| | | | | | | | | glibc 2.25+ has now defined these macros in <limits.h> https://sourceware.org/git/?p=glibc.git;a=commit;h=5b17fd0da62bf923cb61d1bb7b08cf2e1f1f9c1a Create an alias for FC_CHAR_WIDTH for ABI compatibility Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Add su[pport for symbol fontsBehdad Esfahbod2015-05-181-0/+1
| | | | | | | | | | | | | Adds FC_SYMBOL. This affects fonts having a cmap with platform 3 encoding 0. We now map their glyphs from the PUA area to the Latin1 area. See thread "Webdings and other MS symbol fonts don't display" on the mailing list. Test before/after with: $ pango-view --markup --text='<span fallback="false">&#xd7;&#xf0d7;</span>' --font=Wingdings
* Add FC_COLORBehdad Esfahbod2014-12-141-0/+1
| | | | | | Only adds "color" to pattern if FreeType version supports color. Based on patch from Jungshik Shin.
* Fixup previous commitBehdad Esfahbod2014-07-061-1/+1
|
* Deprecate FC_HASH and don't compute itBehdad Esfahbod2014-06-121-2/+2
| | | | | | | | | | It was added without proper measurement and a fuzzy possible use-case (font servers) in mind, but reality check shows that this significantly slows down caching. As such, deprecate it and do NOT compute hash during caching. Makes caching two to three times faster (ignoring the 2 second delay in fc-cache).
* Bug 71287 - size specific design selection support in OS/2 table version 5Akira TAGOH2014-03-261-1/+1
| | | | | | | | | | This feature requires the FreeType 2.5.1 or later at the build time. Besides <range> element allows <double> elements with this changes. This may breaks the cache but not bumping in this change sets at this moment. please be aware if you want to try it and run fc-cache before/after to avoid the weird thing against it.
* Add missing license headersAkira TAGOH2014-01-171-0/+23
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=73401
* Bug 16818 - fontformat in match pattern is not respected?Akira TAGOH2013-08-141-1/+1
|
* Bug 67845 - Match on FC_SCALABLEAkira TAGOH2013-08-071-1/+1
|
* Bug 63922 - FcFreeTypeQueryFace fails on postscripts fonts loaded from memoryAkira TAGOH2013-05-161-1/+1
| | | | | | Workaround to not failing even when the hash is unable to generate from fonts. This change also contains to ignore the case if the hash isn't in either both patterns.
* Bug 38737 - Wishlist: support FC_POSTSCRIPT_NAMEAkira TAGOH2013-03-211-0/+1
| | | | | | Add the PostScript name into the cache and the matcher. Scoring the better font against the PostScript name by the forward-matching.
* Update _FcMatchers definition logicAkira TAGOH2013-02-061-45/+45
| | | | | to make it easier to maintain. also added FC_HASH_OBJECT to be matched in the pattern, prior to FC_FILE_OBJECT.
* Bug 50733 - Add font-file hash?Akira TAGOH2013-02-051-0/+1
| | | | Add "hash" object which contains SHA256 hash value (so far) computed from the font file.
* Bug 59379 - FC_PRGNAMEBehdad Esfahbod2013-01-151-0/+1
| | | | Can be used for per-application configuration.
* Bug 50497 - RFE: Add OpenType feature tags supportAkira TAGOH2013-01-151-0/+1
| | | | Add FC_FONT_FEATURES to store the feature tags to be enabled.
* Use a static perfect hash table for object-name lookupBehdad Esfahbod2013-01-021-0/+44
The hash table is generated by gperf. For runtime element types, we use a append-only linked list. A bit clumsy, but I think I got it right.