Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F fontconfig
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 170
    • Issues 170
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fontconfig
  • fontconfig
  • Issues
  • #17

Closed
Open
Created Apr 16, 2012 by Bugzilla Migration User@bugzilla-migration

API redesign

Submitted by Akira TAGOH @tagoh

Assigned to fon..@..op.org

Link to original bug (#48755)

Description

there are some cases I feel an urge to cleanup/redesign fontconfig API though, let me add a note here for a chance to do so in the future.

  1. the API prefix isn't intuitive to find out where it's included in. e.g. FcDirCache* in fccache.c but some is in fcdir.c. and some can see in fcfs.c, fslist.c and fcmatch.c. for FcFontSet as well.
  2. some APIs is hard to imagine the functionality from the name e.g. FcDirCacheRead() vs FcDirCacheLoad()
  3. FcCacheDir() vs FcConfigGetCacheDirs() it implies from the name it may behaves similarly but FcCacheDir() returns the font directory at this moment.
  4. function doesn't take any structure as its prefix implies e.g. FcConfigFilename() etc
  5. FcConfigAppFontAddFile() and FcConfigAppFontAddDir() that could be integrated into one and branch if it's a file or a directory?
  6. In doc, FcConfigSubstitute() and FcDefaultSubstitute() are required to get FcFontMatch() and FcFontSort() working though, it's actually optional to do in the program. guess there may be a reason to do so but that looks to me like an error of API design.

may update more later...

Version: 2.9

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking