Permalink
Browse files

Only force 'Times New Roman' font for bullet types not textual list t…

…ypes
  • Loading branch information...
1 parent e9b7cf2 commit 53f280da6ce1c9363335eb628c3d20f65693d4a3 Gunnar Herzog committed Apr 5, 2013
Showing with 8 additions and 3 deletions.
  1. +8 −3 Core/Source/DTHTMLElementLI.m
@@ -48,9 +48,14 @@ - (NSAttributedString *)attributedString
DTHTMLElementLI *tmpCopy = [[DTHTMLElementLI alloc] init];
[tmpCopy inheritAttributesFromElement:self];
- // force bullet font to be Times New Roman because iOS 6 has a larger level 3 bullet
- tmpCopy.fontDescriptor = listRoot.fontDescriptor;
- tmpCopy.fontDescriptor.fontFamily = @"Times New Roman";
+ DTCSSListStyleType type = listRoot.listStyle.type;
+ // Only force Times New Roman if bullet types
+ if (type == DTCSSListStyleTypeCircle || type == DTCSSListStyleTypeSquare || type == DTCSSListStyleTypeDisc)
+ {
+ // force bullet font to be Times New Roman because iOS 6 has a larger level 3 bullet
+ tmpCopy.fontDescriptor = listRoot.fontDescriptor;
+ tmpCopy.fontDescriptor.fontFamily = @"Times New Roman";
+ }
// take the parents text color
tmpCopy.textColor = listRoot.textColor;

0 comments on commit 53f280d

Please sign in to comment.