mirror of https://github.com/M66B/FairEmail.git
Font size for headers
This commit is contained in:
parent
1eac366590
commit
7250ce175a
|
@ -3730,8 +3730,14 @@ public class HtmlHelper {
|
|||
case "h4":
|
||||
case "h5":
|
||||
case "h6":
|
||||
// Font size is already set
|
||||
setSpan(ssb, new StyleSpan(Typeface.BOLD), start, ssb.length());
|
||||
int hsize = tag.charAt(1) - '0';
|
||||
if (hsize == 1)
|
||||
setSpan(ssb, new RelativeSizeSpan(FONT_XLARGE), start, ssb.length());
|
||||
else if (hsize == 2)
|
||||
setSpan(ssb, new RelativeSizeSpan(FONT_LARGE), start, ssb.length());
|
||||
else if (hsize > 3)
|
||||
setSpan(ssb, new RelativeSizeSpan(FONT_SMALL), start, ssb.length());
|
||||
break;
|
||||
case "hr":
|
||||
// Suppress successive lines
|
||||
|
|
Loading…
Reference in New Issue