Просмотр исходного кода

Use SF Mono / Menlo for log font

Tanner Bennett лет назад: 6
Родитель
Сommit
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) {