Преглед изворни кода

Use SF Mono / Menlo for log font

Tanner Bennett пре 6 година
родитељ
комит
c661d491a5
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogCell.m

+ 2 - 1
Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogCell.m

@@ -8,6 +8,7 @@
 
 #import "FLEXSystemLogCell.h"
 #import "FLEXSystemLogMessage.h"
+#import "UIFont+FLEX.h"
 
 NSString *const kFLEXSystemLogCellIdentifier = @"FLEXSystemLogCellIdentifier";
 
@@ -69,7 +70,7 @@ static const UIEdgeInsets kFLEXLogMessageCellInsets = {10.0, 10.0, 10.0, 10.0};
 
 + (NSAttributedString *)attributedTextForLogMessage:(FLEXSystemLogMessage *)logMessage highlightedText:(NSString *)highlightedText {
     NSString *text = [self displayedTextForLogMessage:logMessage];
-    NSDictionary<NSString *, id> *attributes = @{ NSFontAttributeName : [UIFont fontWithName:@"CourierNewPSMT" size:12.0] };
+    NSDictionary<NSString *, id> *attributes = @{ NSFontAttributeName : UIFont.flex_codeFont };
     NSAttributedString *attributedText = [[NSAttributedString alloc] initWithString:text attributes:attributes];
 
     if (highlightedText.length > 0) {