mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Font size for headers
This commit is contained in:
parent
1eac366590
commit
7250ce175a
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue