aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r--Source/SPTooltip.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m
index 315ea92c..94017795 100644
--- a/Source/SPTooltip.m
+++ b/Source/SPTooltip.m
@@ -128,8 +128,10 @@ static float slow_in_out (float t)
{
[text replaceOccurrencesOfString:@"&" withString:@"&" options:0 range:NSMakeRange(0, [text length])];
[text replaceOccurrencesOfString:@"<" withString:@"&lt;" options:0 range:NSMakeRange(0, [text length])];
- // [text insertString:@"<pre>" atIndex:0];
- // [text appendString:@"</pre>"];
+ [text insertString:[NSString stringWithFormat:@"<pre style=\"font-family:'%@';\">",
+ ([displayOptions objectForKey:@"fontname"]) ? [displayOptions objectForKey:@"fontname"] : @"Lucida Grande"]
+ atIndex:0];
+ [text appendString:@"</pre>"];
html = text;
}
else