Revision: 15100
http://sourceforge.net/p/skim-app/code/15100
Author: hofman
Date: 2025-04-07 16:27:17 +0000 (Mon, 07 Apr 2025)
Log Message:
-----------
use Palatino-Bold
Modified Paths:
--------------
trunk/SKFontWell.m
Modified: trunk/SKFontWell.m
===================================================================
--- trunk/SKFontWell.m 2025-04-07 15:46:44 UTC (rev 15099)
+++ trunk/SKFontWell.m 2025-04-07 16:27:17 UTC (rev 15100)
@@ -46,7 +46,7 @@
#define SKNSFontPanelDescriptorsPboardType @"NSFontPanelDescriptorsPboardType"
#define SKNSFontPanelFamiliesPboardType @"NSFontPanelFamiliesPboardType"
-#define UTIForNSPboardType(type)
CFBridgingRelease(UTTypeCreatePreferredIdentifierForTag(kUTTagClassNSPboardType,
(__bridge CFStringRef)type, kUTTypeData))
+
#define SKNSFontCollectionFontDescriptors @"NSFontCollectionFontDescriptors"
#define SKFontWellWillBecomeActiveNotification
@"SKFontWellWillBecomeActiveNotification"
@@ -293,7 +293,7 @@
NSDictionary *dict = @{SKNSFontCollectionFontDescriptors: @[[[self
font] fontDescriptor]], NSFontSizeAttribute: [NSNumber numberWithDouble:[[self
font] pointSize]]};
NSData *data = [NSKeyedArchiver archivedDataWithRootObject:dict];
NSPasteboardItem *item = [[NSPasteboardItem alloc] init];
- [item setData:data
forType:UTIForNSPboardType(SKNSFontPanelDescriptorsPboardType)];
+ [item setData:data
forType:CFBridgingRelease(UTTypeCreatePreferredIdentifierForTag(kUTTagClassNSPboardType,
(__bridge CFStringRef)SKNSFontPanelDescriptorsPboardType, kUTTypeData))];
NSDraggingItem *dragItem = [[NSDraggingItem alloc]
initWithPasteboardWriter:item];
[dragItem setDraggingFrame:bounds contents:dragImage];
@@ -444,7 +444,7 @@
if ([self hasTextColor]) {
NSRect rect = NSMakeRect(NSMaxX(frame) - 12.0, 2.0, 10.0, 10.0);
- NSAttributedString *T = [[NSAttributedString alloc]
initWithString:@"T" attributes:@{NSForegroundColorAttributeName: [NSColor
labelColor], NSFontAttributeName: [NSFont fontWithName:@"Palatino" size:8.0]}];
+ NSAttributedString *T = [[NSAttributedString alloc]
initWithString:@"T" attributes:@{NSForegroundColorAttributeName: [NSColor
labelColor], NSFontAttributeName: [NSFont fontWithName:@"Palatino-Bold"
size:8.0]}];
NSSize size = [T size];
[T drawInRect:NSMakeRect(NSMinX(rect) - ceil(size.width) - 2.0,
floor(NSMidY(rect) - 0.5 * size.height) - 0.0, size.width, size.height)];
[NSGraphicsContext saveGraphicsState];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit