Bug 8053 - Provide FcFontSort-like API without having the fallbacks
Summary: Provide FcFontSort-like API without having the fallbacks
Status: RESOLVED MOVED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2_1
Hardware: x86 (IA32) Linux (All)
: high enhancement
Assignee: fontconfig-bugs
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-28 21:45 UTC by Behdad Esfahbod
Modified: 2018-08-20 21:45 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Behdad Esfahbod 2006-08-28 21:45:08 UTC
Keith has this idea of for performance reasons rebuilding FcFontSort results
from FcFontMatch followed by a generic fallback list.  This doesn't work for
various cases, including for ":lang=en,ja" for example.

To be able to do something like that we need a new API that returns a list of
fonts explicitly chosen to fulfill the requested pattern (including stuff added
by the config file.)  That list then can be expanded by a generic fallback list
by the application.   Not sure how easy is to implement this.

Example:

[behdad@home ~]$ fc-match --sort | head -n 5
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans-ExtraLight.ttf: "DejaVu LGC Sans" "ExtraLight"
DejaVuLGCSans-BoldOblique.ttf: "DejaVu LGC Sans" "Bold Oblique"
n019003l.pfb: "Nimbus Sans L" "Regular"

[behdad@home ~]$ fc-match --sort :lang=fa | head -n 5
roya.ttf: "Roya" "Regular"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans-ExtraLight.ttf: "DejaVu LGC Sans" "ExtraLight"
DejaVuLGCSans-BoldOblique.ttf: "DejaVu LGC Sans" "Bold Oblique"

[behdad@home ~]$ fc-match --sort :lang=fa,ja | head -n 5
roya.ttf: "Roya" "Regular"
sazanami-gothic.ttf: "Sazanami Gothic" "Gothic-Regular"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans-ExtraLight.ttf: "DejaVu LGC Sans" "ExtraLight"

[behdad@home ~]$ fc-match --sort Nazli:lang=fa,ja  | head -n 5
nazli.ttf: "Nazli" "Regular"
sazanami-gothic.ttf: "Sazanami Gothic" "Gothic-Regular"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
DejaVuLGCSans-ExtraLight.ttf: "DejaVu LGC Sans" "ExtraLight"
Comment 1 GitLab Migration User 2018-08-20 21:45:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/37.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.