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 16
    • Merge Requests 16
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fontconfig
  • fontconfig
  • Issues
  • #42

Closed
Open
Opened 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: fontconfig/fontconfig#42