mirror of https://github.com/M66B/FairEmail.git
Added relative font size support
This commit is contained in:
parent
cb4ec62787
commit
405b7ec4d6
|
@ -477,6 +477,11 @@ public class HtmlHelper {
|
|||
|
||||
if (!TextUtils.isEmpty(size)) {
|
||||
try {
|
||||
if (size.startsWith("-"))
|
||||
size = "smaller";
|
||||
else if (size.startsWith("+"))
|
||||
size = "larger";
|
||||
else {
|
||||
int s = Integer.parseInt(size);
|
||||
if (s < 3)
|
||||
size = "small";
|
||||
|
@ -484,6 +489,7 @@ public class HtmlHelper {
|
|||
size = "large";
|
||||
else
|
||||
size = "medium";
|
||||
}
|
||||
sb.append("font-size:").append(size).append(";");
|
||||
} catch (NumberFormatException ex) {
|
||||
Log.i(ex);
|
||||
|
|
Loading…
Reference in New Issue