I've never seen such a verbose API. To extract font names from Core Text, I have to:
1. Create CFString from ascii string. 2. Create font descriptor with this CFString 3. Create a dictionary 4. Add font descriptor in a dictionary 5. Create font collection with a dictionary 6. Create font descriptors from a collection 7. Extract font descriptor from a collection 8. Copy attribute from this descriptor 9. Convert CFString (attribute) to C-string. All this mess is just to extract a font name :)) Miles and miles of code doing (actually) nothin. git-svn-id: http://root.cern.ch/svn/root/trunk@44123 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- graf2d/cocoa/inc/FontCache.h 20 additions, 1 deletiongraf2d/cocoa/inc/FontCache.h
- graf2d/cocoa/src/FontCache.mm 135 additions, 0 deletionsgraf2d/cocoa/src/FontCache.mm
- graf2d/cocoa/src/TGCocoa.mm 7 additions, 6 deletionsgraf2d/cocoa/src/TGCocoa.mm
- graf2d/cocoa/src/XLFDParser.mm 7 additions, 0 deletionsgraf2d/cocoa/src/XLFDParser.mm
Loading
Please register or sign in to comment