Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
F
fontconfig
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 152
    • Issues 152
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • fontconfig
  • fontconfig
  • Issues
  • #215

Closed
Open
Opened Jan 13, 2020 by Nicolas Mailhot@nimContributor

Please expose absolute weight in fontconfig

Right now fontconfig uses a relative scale for weight, like it does for width.

However the OpenType and CSS specifications use an absolute scale, including for variable fonts

  • Opentype Weight aaxis
  • OpenType Weight
  • CSS Weight

The unit divergence between fontconfig and the specs makes it hard for users, packagers and font makers to check if a font deviates from the standard using fontconfig tools (and every error one lets pass snowballs once enshrined in config files and documents)

Please expose an absweight parameter in fc-scan, fc-list, etc that can also be used in fontconfig files, and convert silently between weightand absweight engine side, so it does not matter which scale humans and apps use to talk to fontconfig.

(alternatively weight could be fixed to conform to the specifications, but that is a backwards-breaking change)

Fontconfig already needs to convert between those scales since the meaning of standard weights is given in an absolute scale in the specification

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: fontconfig/fontconfig#215