Correct font used to specify font size. Issue #1878
This commit is contained in:
parent
7f20079e4d
commit
77fd3020cc
|
@ -248,7 +248,8 @@ private extension ArticleRenderer {
|
|||
#if os(iOS)
|
||||
func styleSubstitutions() -> [String: String] {
|
||||
var d = [String: String]()
|
||||
d["font-size"] = String(describing: UIFontMetrics.default.scaledValue(for: UIFont.systemFontSize))
|
||||
let bodyFont = UIFont.preferredFont(forTextStyle: .body)
|
||||
d["font-size"] = String(describing: bodyFont.pointSize)
|
||||
return d
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
:root {
|
||||
font: -apple-system-body;
|
||||
font-size: [[font-size]]pt;
|
||||
font-size: [[font-size]]px;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -77,7 +77,7 @@ body .headerTable {
|
|||
}
|
||||
body .header {
|
||||
font: -apple-system-body;
|
||||
font-size: [[font-size]]pt;
|
||||
font-size: [[font-size]]px;
|
||||
color: var(--header-color);
|
||||
}
|
||||
body .header a:link, body .header a:visited {
|
||||
|
|
Loading…
Reference in New Issue