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
  • #42

Closed
Open
Created Aug 21, 2013 by Bugzilla Migration User@bugzilla-migration

lang attribute support for family tag

Submitted by Akira TAGOH @tagoh

Assigned to fon..@..op.org

Link to original bug (#68377)

Description

<family> tag is used for <alias> though, sometimes wants to add the family conditionally, particularly for certain language. <alias> is capable to have <test> elements but may be a good idea to have the lang attribute to <family> as another syntactic sugar:

<alias> <family>serif</family> <prefer> ... <family lang="ja">MS Mincho</family> AR PL ShanHeiSun Uni</family> ... </prefer> </alias>

interpreted like:

<match> <test name="family"> <string>serif</string> </test> <test name="lang"> <string>ja</string> </test> <edit name="family" mode="prepend"> <string>MS Mincho</string> </edit> </match> <match> <test name="family"> <string>serif</string> </test> <test name="lang"> <string>zh-cn</string> </test> <edit name="family" mode="prepend"> <string>AR PL ShanHeiSun Uni</string> </edit> </match> <match> <test name="family"> <string>serif</string> </test> <test name="lang"> <string>zh-tw</string> </test> <edit name="family" mode="prepend"> <string>AR PL ShanHeiSun Uni</string> </edit> </match>

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