Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W webkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • App_Technologies
  • webkit
  • Repository
Switch branch/tag
  • webkit
  • Source
  • WebCore
  • rendering
  • RenderThemeMacShared.mm
Find file BlameHistoryPermalink
  • dino@apple.com's avatar
    [Mac] Use fontName rather than familyName for internal fonts · eaaeb59a
    dino@apple.com authored Mar 27, 2013
    https://bugs.webkit.org/show_bug.cgi?id=113392
    <rdar://problem/13474743>
    
    Reviewed by Enrica Casucci.
    
    Some internal fonts on OS X have a family name that
    isn't listed in availableFontFamilies. In this case
    we should use the font name rather than the family
    name when looking for a match.
    
    * platform/mac/ThemeMac.h: NSFont category to provide a web-friendly family name.
    * platform/mac/ThemeMac.mm:
    (-[NSFont webCoreFamilyName]): Returns the font name for internal fonts, otherwise the family name.
    (WebCore::ThemeMac::controlFont):
    * rendering/RenderThemeMacShared.mm: Use the webCoreFamilyName.
    (WebCore::RenderThemeMacShared::systemFont): Ditto.
    (WebCore::RenderThemeMacShared::setFontFromControlSize): Ditto.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146995 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    eaaeb59a