Replace by Cambo by Caladea

pull/194/merge
M66B 3 years ago
parent 27c72a9c24
commit 0122daef78

@ -937,9 +937,9 @@ public class StyleHelper {
if (faces.contains("cousine")) if (faces.contains("cousine"))
return "Cousine, Courier New, monospace"; return "Cousine, Courier New, monospace";
if (faces.contains("lato")) if (faces.contains("lato"))
return "Lato, Calibri, sans-serif"; return "Lato, Carlito, Calibri, sans-serif";
if (faces.contains("cambo")) if (faces.contains("caladea"))
return "Cambo, Cambria, serif"; return "Caladea, Cambo, Cambria, serif";
if (faces.contains("comic sans")) if (faces.contains("comic sans"))
return "Comic Sans, Comic Sans MS, sans-serif"; return "Comic Sans, Comic Sans MS, sans-serif";
return family; return family;
@ -976,8 +976,8 @@ public class StyleHelper {
if (faces.contains("lato") || faces.contains("calibri")) if (faces.contains("lato") || faces.contains("calibri"))
return ResourcesCompat.getFont(context, R.font.lato); return ResourcesCompat.getFont(context, R.font.lato);
if (faces.contains("cambo") || faces.contains("cambria")) if (faces.contains("caladea") || faces.contains("cambria"))
return ResourcesCompat.getFont(context, R.font.cambo); return ResourcesCompat.getFont(context, R.font.caladea);
if (faces.contains("comic sans") || faces.contains("comic sans ms")) if (faces.contains("comic sans") || faces.contains("comic sans ms"))
return ResourcesCompat.getFont(context, R.font.opendyslexic); return ResourcesCompat.getFont(context, R.font.opendyslexic);
@ -1003,7 +1003,7 @@ public class StyleHelper {
result.add(new FontDescriptor("tinos", "Tinos (Times New Roman)", true)); result.add(new FontDescriptor("tinos", "Tinos (Times New Roman)", true));
result.add(new FontDescriptor("cousine", "Cousine (Courier New)", true)); result.add(new FontDescriptor("cousine", "Cousine (Courier New)", true));
result.add(new FontDescriptor("lato", "Lato (Calibri)", true)); result.add(new FontDescriptor("lato", "Lato (Calibri)", true));
result.add(new FontDescriptor("cambo", "Cambo (Cambria)", true)); result.add(new FontDescriptor("caladea", "Caladea (Cambria)", true));
result.add(new FontDescriptor("comic sans", "OpenDyslexic", true)); result.add(new FontDescriptor("comic sans", "OpenDyslexic", true));

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:font="@font/caladea_regular"
app:fontStyle="normal"
app:fontWeight="400" />
<font
app:font="@font/caladea_italic"
app:fontStyle="italic"
app:fontWeight="400" />
<font
app:font="@font/caladea_bold"
app:fontStyle="normal"
app:fontWeight="700" />
<font
app:font="@font/caladea_bolditalic"
app:fontStyle="italic"
app:fontWeight="700" />
</font-family>

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:app="http://schemas.android.com/apk/res-auto">
<font
app:font="@font/cambo_regular"
app:fontStyle="normal"
app:fontWeight="400" />
</font-family>
Loading…
Cancel
Save