Skip to content

Commit

Permalink
Merge pull request #5178 from chandra9302/main
Browse files Browse the repository at this point in the history
🛠️ Fix T379634: Ensure Proportional Italic Font Rendering in ToC
  • Loading branch information
l-olson1214 authored Jan 31, 2025
2 parents f1b12ba + bba9d0d commit 1ebb4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wikipedia/Code/TableOfContentsCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TableOfContentsCell: UITableViewCell {

private var styles: HtmlUtils.Styles {
let color = isTitleLabelHighlighted ? titleSelectionColor : titleColor
return HtmlUtils.Styles(font: WMFFont.for(titleTextStyle, compatibleWith: traitCollection), boldFont: WMFFont.for(.boldGeorgiaTitle3, compatibleWith: traitCollection), italicsFont: WMFFont.for(.italicGeorgiaTitle3, compatibleWith: traitCollection), boldItalicsFont: WMFFont.for(.boldItalicGeorgiaTitle3, compatibleWith: traitCollection), color: color, linkColor: titleSelectionColor, lineSpacing: 3)
return HtmlUtils.Styles(font: WMFFont.for(titleTextStyle, compatibleWith: traitCollection), boldFont: WMFFont.for(titleTextStyle == .georgiaTitle3 ? .boldGeorgiaTitle3 : .boldSubheadline, compatibleWith: traitCollection), italicsFont: WMFFont.for(titleTextStyle == .georgiaTitle3 ? .italicGeorgiaTitle3 : .italicSubheadline, compatibleWith: traitCollection), boldItalicsFont: WMFFont.for(titleTextStyle == .georgiaTitle3 ? .boldItalicGeorgiaTitle3 : .boldItalicSubheadline, compatibleWith: traitCollection), color: color, linkColor: titleSelectionColor, lineSpacing: 3)
}

func updateTitle() {
Expand Down

0 comments on commit 1ebb4b1

Please sign in to comment.