Changeset [7586af8f917fc982215719b15971d28699db6b97] by aparajita
July 12th, 2012 @ 04:01 AM
Merge pull request #1606 from slevenbits/system-font
Overhaul of system font handling
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
- Documented the font substitution algorithm and how to use custom fonts in the CPFont class docs.
- See Tests/Manual/FontEnhancementTest for a demo. https://github.com/cappuccino/cappuccino/commit/7586af8f917fc982215...
Committed by aparajita
- M AppKit/CPApplication.j
- M AppKit/CPFont.j
- M AppKit/CPMenu/CPMenu.j
- M AppKit/CPMenu/_CPMenuBarWindow.j
- M AppKit/CPMenuItem/CPMenuItem.j
- M AppKit/CPMenuItem/_CPMenuItemView.j
- M AppKit/CPTableHeaderView.j
- M AppKit/CPTextField.j
- M AppKit/CPTokenField.j
- M AppKit/CPWindow/_CPHUDWindowView.j
- M AppKit/CPWindow/_CPStandardWindowView.j
- M AppKit/Platform/DOM/CPPlatformString.j
- M AppKit/Themes/Aristo/ThemeDescriptors.j
- M AppKit/_CPImageAndTextView.j
- M Tests/AppKit/CPFontTest.j
- M Tests/Manual/FontEnhancementTest/AppController.j
- M Tests/Manual/FontEnhancementTest/Info.plist
- M Tests/Manual/FontEnhancementTest/Resources/MainMenu.cib
- M Tests/Manual/FontEnhancementTest/Resources/MainMenu.xib
- M Tests/Manual/FontEnhancementTest/index-debug.html
- M Tests/Manual/FontEnhancementTest/index.html
- M Tests/Manual/FontMetricsExplorer/Resources/MainMenu.cib
- M Tests/Manual/FontMetricsExplorer/Resources/MainMenu.xib
- M Tools/fontinfo/fontinfo.xcodeproj/project.pbxproj
- M Tools/imagesize/imagesize.xcodeproj/project.pbxproj
- M Tools/nib2cib/Converter+Mac.j
- M Tools/nib2cib/NSFont.j
- M Tools/nib2cib/NSTableColumn.j
- M Tools/nib2cib/Nib2Cib.j
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.