English

Change Default Font to a TTF file (rooted phone)

Hello,

I would like to change the default font to another one that I downloaded (in .ttf or .otf file).
I have an FP2, on Open OS, and I rooted it.
I tried with some apps like HiFont, or FixFont and even iFont, they were’nt working on Fairphone. So I think i’m going to do it a more technical way with code…
Is there a way to change the default font without changing emojis?

Regards,

Clément

1 Like

Last I remember Android’s a bit screwy about installing new fonts - you have to replace the font files that already exist with new files with those same names - if that makes sense (it doesn’t).

You can do it with ADB. First, back up your original fonts:

adb pull /system/fonts

Then, remount /system as r/w and replace a font:

adb root

adb remount

adb push your-font.ttf /system/fonts/Roboto-Regular.ttf

Which would have your new font replacing Roboto Regular, which is the default font for Android. The change will take after a reboot.

Just tested the above, works like a charm. You’ll have to replace all of the Roboto .ttf files, though:

Roboto-Black.ttf
Roboto-BlackItalic.ttf
Roboto-Bold.ttf
Roboto-BoldItalic.ttf
Roboto-Italic.ttf
Roboto-Light.ttf
Roboto-LightItalic.ttf
Roboto-Medium.ttf
Roboto-MediumItalic.ttf
Roboto-Regular.ttf
Roboto-Thin.ttf
Roboto-ThinItalic.ttf
RobotoCondensed-Bold.ttf
RobotoCondensed-BoldItalic.ttf
RobotoCondensed-Italic.ttf
RobotoCondensed-Light.ttf
RobotoCondensed-LightItalic.ttf
RobotoCondensed-Regular.ttf

So you’ll have to find a font that has all these modes, or just push, say the regular version of your favoured font to Roboto Light, Regular, Thin, Medium, et cetera.

3 Likes

What is ADB?

Do I have to install a adb package on my computer or something and enter this line in a terminal?

Sorry, I’m a bit lost in all of this…

Yeah I don’t really understand…

The problem is that my current font is not Roboto… I installed something with iFont and now I can’t get rid of it…

Can I install the font with the updater like this?:

Your fonts are stored in /system/fonts/ and there is a system value somewhere that tells your operating system which font files to use for everything. We’re not changing that value because we don’t know where it is (or at least I don’t), so we’re just replacing the font files, without changing the names so the system doesn’t even know something’s been changed.

ADB is the Android Debug Bridge, a piece of software that can be installed on a PC to interface with an Android phone. To get it up and running:

  1. Go to settings > About phone
  2. Tap repeatedly on ‘Build number’ until a toast appears that says ‘Congrats you are now a developer’
  3. In the main settings screen, go to ‘Developer options’
  4. Tap ‘root access’ and select ‘Apps and ADB’
  5. Tap ‘USB debugging’ and confirm to enable USB debugging.
  6. Install the Android Debug Bridge.
  7. Connect your phone to your PC with a USB data cable.
  8. Open a terminal and type adb devices to see if your device shows up.
  9. To find out which fonts are installed on your phone, type adb shell ls /system/fonts

I don’t know what’s going on with that updater screenshot… I guess it’s something about that iFont app you’ve used. No idea what that app did to your system, so I can’t comment on it. But I guess your phone is using that SFProDisplay font now? So that’ll be the one to replace. I only know about the way of replacing fonts that I described above.

You’ve let a (possibly shady) app make changes to your system, so I am unsure what the state of your device is now. If you can tell me what fonts are installed (see step 9), and which font is currently being used as the system font, we can clear a path to victory.

2 Likes

Good everning,
Here’s my code:

clement@clement-HP-G61:~$ cd '/home/clement/Bureau/platform-tools' 
clement@clement-HP-G61:~/Bureau/platform-tools$ adb devices
List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
fbc6f639	unauthorized

clement@clement-HP-G61:~/Bureau/platform-tools$ adb devices
List of devices attached
fbc6f639	device

clement@clement-HP-G61:~/Bureau/platform-tools$ adb devices
List of devices attached
fbc6f639	device

clement@clement-HP-G61:~/Bureau/platform-tools$ adb shell ls /system/fonts
AndroidClock.ttf
AndroidEmoji-htc.ttf
CarroisGothicSC-Regular.ttf
ComingSoon.ttf
CutiveMono.ttf
DancingScript-Bold.ttf
DancingScript-Regular.ttf
DroidSans-Bold.ttf
DroidSans.ttf
DroidSansFallback.ttf
DroidSansMono.ttf
NotoColorEmoji.ttf
NotoNaskhArabic-Bold.ttf
NotoNaskhArabic-Regular.ttf
NotoNaskhArabicUI-Bold.ttf
NotoNaskhArabicUI-Regular.ttf
NotoSansArmenian-Bold.ttf
NotoSansArmenian-Regular.ttf
NotoSansBalinese-Regular.ttf
NotoSansBamum-Regular.ttf
NotoSansBatak-Regular.ttf
NotoSansBengali-Bold.ttf
NotoSansBengali-Regular.ttf
NotoSansBengaliUI-Bold.ttf
NotoSansBengaliUI-Regular.ttf
NotoSansBuginese-Regular.ttf
NotoSansBuhid-Regular.ttf
NotoSansCJK-Regular.ttc
NotoSansCanadianAboriginal-Regular.ttf
NotoSansCham-Bold.ttf
NotoSansCham-Regular.ttf
NotoSansCherokee-Regular.ttf
NotoSansCoptic-Regular.ttf
NotoSansDevanagari-Bold.ttf
NotoSansDevanagari-Regular.ttf
NotoSansDevanagariUI-Bold.ttf
NotoSansDevanagariUI-Regular.ttf
NotoSansEthiopic-Bold.ttf
NotoSansEthiopic-Regular.ttf
NotoSansGeorgian-Bold.ttf
NotoSansGeorgian-Regular.ttf
NotoSansGlagolitic-Regular.ttf
NotoSansGujarati-Bold.ttf
NotoSansGujarati-Regular.ttf
NotoSansGujaratiUI-Bold.ttf
NotoSansGujaratiUI-Regular.ttf
NotoSansGurmukhi-Bold.ttf
NotoSansGurmukhi-Regular.ttf
NotoSansGurmukhiUI-Bold.ttf
NotoSansGurmukhiUI-Regular.ttf
NotoSansHanunoo-Regular.ttf
NotoSansHebrew-Bold.ttf
NotoSansHebrew-Regular.ttf
NotoSansJavanese-Regular.ttf
NotoSansKannada-Bold.ttf
NotoSansKannada-Regular.ttf
NotoSansKannadaUI-Bold.ttf
NotoSansKannadaUI-Regular.ttf
NotoSansKayahLi-Regular.ttf
NotoSansKhmer-Bold.ttf
NotoSansKhmer-Regular.ttf
NotoSansKhmerUI-Bold.ttf
NotoSansKhmerUI-Regular.ttf
NotoSansLao-Bold.ttf
NotoSansLao-Regular.ttf
NotoSansLaoUI-Bold.ttf
NotoSansLaoUI-Regular.ttf
NotoSansLepcha-Regular.ttf
NotoSansLimbu-Regular.ttf
NotoSansLisu-Regular.ttf
NotoSansMalayalam-Bold.ttf
NotoSansMalayalam-Regular.ttf
NotoSansMalayalamUI-Bold.ttf
NotoSansMalayalamUI-Regular.ttf
NotoSansMandaic-Regular.ttf
NotoSansMeeteiMayek-Regular.ttf
NotoSansMongolian-Regular.ttf
NotoSansMyanmar-Bold.ttf
NotoSansMyanmar-Regular.ttf
NotoSansMyanmarUI-Bold.ttf
NotoSansMyanmarUI-Regular.ttf
NotoSansNKo-Regular.ttf
NotoSansNewTaiLue-Regular.ttf
NotoSansOlChiki-Regular.ttf
NotoSansOriya-Bold.ttf
NotoSansOriya-Regular.ttf
NotoSansOriyaUI-Bold.ttf
NotoSansOriyaUI-Regular.ttf
NotoSansRejang-Regular.ttf
NotoSansSaurashtra-Regular.ttf
NotoSansSinhala-Bold.ttf
NotoSansSinhala-Regular.ttf
NotoSansSundanese-Regular.ttf
NotoSansSylotiNagri-Regular.ttf
NotoSansSymbols-Regular-Subsetted.ttf
NotoSansSymbols-Regular-Subsetted2.ttf
NotoSansSyriacEstrangela-Regular.ttf
NotoSansTagbanwa-Regular.ttf
NotoSansTaiLe-Regular.ttf
NotoSansTaiTham-Regular.ttf
NotoSansTaiViet-Regular.ttf
NotoSansTamil-Bold.ttf
NotoSansTamil-Regular.ttf
NotoSansTamilUI-Bold.ttf
NotoSansTamilUI-Regular.ttf
NotoSansTelugu-Bold.ttf
NotoSansTelugu-Regular.ttf
NotoSansTeluguUI-Bold.ttf
NotoSansTeluguUI-Regular.ttf
NotoSansThaana-Bold.ttf
NotoSansThaana-Regular.ttf
NotoSansThai-Bold.ttf
NotoSansThai-Regular.ttf
NotoSansThaiUI-Bold.ttf
NotoSansThaiUI-Regular.ttf
NotoSansTibetan-Bold.ttf
NotoSansTibetan-Regular.ttf
NotoSansTifinagh-Regular.ttf
NotoSansVai-Regular.ttf
NotoSansYi-Regular.ttf
NotoSerif-Bold.ttf
NotoSerif-BoldItalic.ttf
NotoSerif-Italic.ttf
NotoSerif-Regular.ttf
Roboto-Black.ttf
Roboto-BlackItalic.ttf
Roboto-Bold.ttf
Roboto-BoldItalic.ttf
Roboto-Italic.ttf
Roboto-Light.ttf
Roboto-LightItalic.ttf
Roboto-Medium.ttf
Roboto-MediumItalic.ttf
Roboto-Regular.ttf
Roboto-Thin.ttf
Roboto-ThinItalic.ttf
RobotoCondensed-Bold.ttf
RobotoCondensed-BoldItalic.ttf
RobotoCondensed-Italic.ttf
RobotoCondensed-Light.ttf
RobotoCondensed-LightItalic.ttf
RobotoCondensed-Regular.ttf
SamsungColorEmoji.ttf
clement@clement-HP-G61:~/Bureau/platform-tools$ 

I’m not sure this is going to help you, because the fonts downloaded by the apps aren’t in this list… The first font I downloaded was Aileron and I downloaded Ubuntu font, because I wanted to replace Aileron and I wanted to see if the app I used to download and Ubuntu was working (FontFix). The problem is that I have now a mix of the two fonts: titles are in Aileron, and normal text in Ubuntu. So I deleted all the other apps but it didn’t worked; Aileron font still was the Title Font.

SFProDisplay is the font I want to install, not the one that I have now.


(I’m sorry, it’s not Arimo, it’s Aileron)

Looks like font settings are stored in /etc/fonts.xml. So I think that’s the file being changed by iFont.

Can you run adb shell cat /etc/fonts.xml and post the output?

This is what mine looks like. As far as I know it’s unchanged from stock.

<?xml version="1.0" encoding="utf-8"?>
<!--
All fonts without names are added to the default list. Fonts are chosen
based on a match: full BCP-47 language tag including script, then just
language, and finally order (the first font containing the glyph).

Order of appearance is also the tiebreaker for weight matching. This is
the reason why the 900 weights of Roboto precede the 700 weights - we
prefer the former when an 800 weight is requested. Since bold spans
effectively add 300 to the weight, this ensures that 900 is the bold
paired with the 500 weight, ensuring adequate contrast.
-->
<familyset version="22">
<!-- first font is default -->
<family name="sans-serif">
    <font weight="100" style="normal">Roboto-Thin.ttf</font>
    <font weight="100" style="italic">Roboto-ThinItalic.ttf</font>
    <font weight="300" style="normal">Roboto-Light.ttf</font>
    <font weight="300" style="italic">Roboto-LightItalic.ttf</font>
    <font weight="400" style="normal">Roboto-Regular.ttf</font>
    <font weight="400" style="italic">Roboto-Italic.ttf</font>
    <font weight="500" style="normal">Roboto-Medium.ttf</font>
    <font weight="500" style="italic">Roboto-MediumItalic.ttf</font>
    <font weight="900" style="normal">Roboto-Black.ttf</font>
    <font weight="900" style="italic">Roboto-BlackItalic.ttf</font>
    <font weight="700" style="normal">Roboto-Bold.ttf</font>
    <font weight="700" style="italic">Roboto-BoldItalic.ttf</font>
</family>

<!-- Note that aliases must come after the fonts they reference. -->
<alias name="sans-serif-thin" to="sans-serif" weight="100" />
<alias name="sans-serif-light" to="sans-serif" weight="300" />
<alias name="sans-serif-medium" to="sans-serif" weight="500" />
<alias name="sans-serif-black" to="sans-serif" weight="900" />
<alias name="arial" to="sans-serif" />
<alias name="helvetica" to="sans-serif" />
<alias name="tahoma" to="sans-serif" />
<alias name="verdana" to="sans-serif" />

<family name="sans-serif-condensed">
    <font weight="300" style="normal">RobotoCondensed-Light.ttf</font>
    <font weight="300" style="italic">RobotoCondensed-LightItalic.ttf</font>
    <font weight="400" style="normal">RobotoCondensed-Regular.ttf</font>
    <font weight="400" style="italic">RobotoCondensed-Italic.ttf</font>
    <font weight="700" style="normal">RobotoCondensed-Bold.ttf</font>
    <font weight="700" style="italic">RobotoCondensed-BoldItalic.ttf</font>
</family>
<alias name="sans-serif-condensed-light" to="sans-serif-condensed" weight="300" />

<family name="serif">
    <font weight="400" style="normal">NotoSerif-Regular.ttf</font>
    <font weight="700" style="normal">NotoSerif-Bold.ttf</font>
    <font weight="400" style="italic">NotoSerif-Italic.ttf</font>
    <font weight="700" style="italic">NotoSerif-BoldItalic.ttf</font>
</family>
<alias name="times" to="serif" />
<alias name="times new roman" to="serif" />
<alias name="palatino" to="serif" />
<alias name="georgia" to="serif" />
<alias name="baskerville" to="serif" />
<alias name="goudy" to="serif" />
<alias name="fantasy" to="serif" />
<alias name="ITC Stone Serif" to="serif" />

<family name="monospace">
    <font weight="400" style="normal">DroidSansMono.ttf</font>
</family>
<alias name="sans-serif-monospace" to="monospace" />
<alias name="monaco" to="monospace" />

<family name="serif-monospace">
    <font weight="400" style="normal">CutiveMono.ttf</font>
</family>
<alias name="courier" to="serif-monospace" />
<alias name="courier new" to="serif-monospace" />

<family name="casual">
    <font weight="400" style="normal">ComingSoon.ttf</font>
</family>

<family name="cursive">
    <font weight="400" style="normal">DancingScript-Regular.ttf</font>
    <font weight="700" style="normal">DancingScript-Bold.ttf</font>
</family>

<family name="sans-serif-smallcaps">
    <font weight="400" style="normal">CarroisGothicSC-Regular.ttf</font>
</family>

<!-- fallback fonts -->
<family lang="und-Arab" variant="elegant">
    <font weight="400" style="normal">NotoNaskhArabic-Regular.ttf</font>
    <font weight="700" style="normal">NotoNaskhArabic-Bold.ttf</font>
</family>
<family lang="und-Arab" variant="compact">
    <font weight="400" style="normal">NotoNaskhArabicUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoNaskhArabicUI-Bold.ttf</font>
</family>
<family lang="und-Ethi">
    <font weight="400" style="normal">NotoSansEthiopic-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansEthiopic-Bold.ttf</font>
</family>
<family lang="und-Hebr">
    <font weight="400" style="normal">NotoSansHebrew-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansHebrew-Bold.ttf</font>
</family>
<family lang="und-Thai" variant="elegant">
    <font weight="400" style="normal">NotoSansThai-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansThai-Bold.ttf</font>
</family>
<family lang="und-Thai" variant="compact">
    <font weight="400" style="normal">NotoSansThaiUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansThaiUI-Bold.ttf</font>
</family>
<family lang="und-Armn">
    <font weight="400" style="normal">NotoSansArmenian-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansArmenian-Bold.ttf</font>
</family>
<!-- TODO: add Geok -->
<family lang="und-Geor">
    <font weight="400" style="normal">NotoSansGeorgian-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansGeorgian-Bold.ttf</font>
</family>
<family lang="und-Deva" variant="elegant">
    <font weight="400" style="normal">NotoSansDevanagari-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansDevanagari-Bold.ttf</font>
</family>
<family lang="und-Deva" variant="compact">
    <font weight="400" style="normal">NotoSansDevanagariUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansDevanagariUI-Bold.ttf</font>
</family>

<!-- All scripts of India should come after Devanagari, due to shared
     danda characters.
-->
<family lang="und-Gujr" variant="elegant">
    <font weight="400" style="normal">NotoSansGujarati-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansGujarati-Bold.ttf</font>
</family>
<family lang="und-Gujr" variant="compact">
    <font weight="400" style="normal">NotoSansGujaratiUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansGujaratiUI-Bold.ttf</font>
</family>
<family lang="und-Guru" variant="elegant">
    <font weight="400" style="normal">NotoSansGurmukhi-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansGurmukhi-Bold.ttf</font>
</family>
<family lang="und-Guru" variant="compact">
    <font weight="400" style="normal">NotoSansGurmukhiUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansGurmukhiUI-Bold.ttf</font>
</family>
<family lang="und-Taml" variant="elegant">
    <font weight="400" style="normal">NotoSansTamil-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansTamil-Bold.ttf</font>
</family>
<family lang="und-Taml" variant="compact">
    <font weight="400" style="normal">NotoSansTamilUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansTamilUI-Bold.ttf</font>
</family>
<family lang="und-Mlym" variant="elegant">
    <font weight="400" style="normal">NotoSansMalayalam-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansMalayalam-Bold.ttf</font>
</family>
<family lang="und-Mlym" variant="compact">
    <font weight="400" style="normal">NotoSansMalayalamUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansMalayalamUI-Bold.ttf</font>
</family>
<family lang="und-Beng" variant="elegant">
    <font weight="400" style="normal">NotoSansBengali-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansBengali-Bold.ttf</font>
</family>
<family lang="und-Beng" variant="compact">
    <font weight="400" style="normal">NotoSansBengaliUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansBengaliUI-Bold.ttf</font>
</family>
<family lang="und-Telu" variant="elegant">
    <font weight="400" style="normal">NotoSansTelugu-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansTelugu-Bold.ttf</font>
</family>
<family lang="und-Telu" variant="compact">
    <font weight="400" style="normal">NotoSansTeluguUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansTeluguUI-Bold.ttf</font>
</family>
<family lang="und-Knda" variant="elegant">
    <font weight="400" style="normal">NotoSansKannada-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansKannada-Bold.ttf</font>
</family>
<family lang="und-Knda" variant="compact">
    <font weight="400" style="normal">NotoSansKannadaUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansKannadaUI-Bold.ttf</font>
</family>
<family lang="und-Orya" variant="elegant">
    <font weight="400" style="normal">NotoSansOriya-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansOriya-Bold.ttf</font>
</family>
<family lang="und-Orya" variant="compact">
    <font weight="400" style="normal">NotoSansOriyaUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansOriyaUI-Bold.ttf</font>
</family>

<family lang="und-Sinh">
    <font weight="400" style="normal">NotoSansSinhala-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansSinhala-Bold.ttf</font>
</family>
<family lang="und-Khmr" variant="elegant">
    <font weight="400" style="normal">NotoSansKhmer-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansKhmer-Bold.ttf</font>
</family>
<family lang="und-Khmr" variant="compact">
    <font weight="400" style="normal">NotoSansKhmerUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansKhmerUI-Bold.ttf</font>
</family>
<family lang="und-Laoo" variant="elegant">
    <font weight="400" style="normal">NotoSansLao-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansLao-Bold.ttf</font>
</family>
<family lang="und-Laoo" variant="compact">
    <font weight="400" style="normal">NotoSansLaoUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansLaoUI-Bold.ttf</font>
</family>
<family lang="und-Mymr" variant="elegant">
    <font weight="400" style="normal">NotoSansMyanmar-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansMyanmar-Bold.ttf</font>
</family>
<family lang="und-Mymr" variant="compact">
    <font weight="400" style="normal">NotoSansMyanmarUI-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansMyanmarUI-Bold.ttf</font>
</family>
<family lang="und-Thaa">
    <font weight="400" style="normal">NotoSansThaana-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansThaana-Bold.ttf</font>
</family>
<family lang="und-Cham">
    <font weight="400" style="normal">NotoSansCham-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansCham-Bold.ttf</font>
</family>
<family lang="und-Bali">
    <font weight="400" style="normal">NotoSansBalinese-Regular.ttf</font>
</family>
<family lang="und-Bamu">
    <font weight="400" style="normal">NotoSansBamum-Regular.ttf</font>
</family>
<family lang="und-Batk">
    <font weight="400" style="normal">NotoSansBatak-Regular.ttf</font>
</family>
<family lang="und-Bugi">
    <font weight="400" style="normal">NotoSansBuginese-Regular.ttf</font>
</family>
<family lang="und-Buhd">
    <font weight="400" style="normal">NotoSansBuhid-Regular.ttf</font>
</family>
<family lang="und-Cans">
    <font weight="400" style="normal">NotoSansCanadianAboriginal-Regular.ttf</font>
</family>
<family lang="und-Cher">
    <font weight="400" style="normal">NotoSansCherokee-Regular.ttf</font>
</family>
<family lang="und-Copt">
    <font weight="400" style="normal">NotoSansCoptic-Regular.ttf</font>
</family>
<family lang="und-Glag">
    <font weight="400" style="normal">NotoSansGlagolitic-Regular.ttf</font>
</family>
<family lang="und-Hano">
    <font weight="400" style="normal">NotoSansHanunoo-Regular.ttf</font>
</family>
<family lang="und-Java">
    <font weight="400" style="normal">NotoSansJavanese-Regular.ttf</font>
</family>
<family lang="und-Kali">
    <font weight="400" style="normal">NotoSansKayahLi-Regular.ttf</font>
</family>
<family lang="und-Lepc">
    <font weight="400" style="normal">NotoSansLepcha-Regular.ttf</font>
</family>
<family lang="und-Limb">
    <font weight="400" style="normal">NotoSansLimbu-Regular.ttf</font>
</family>
<family lang="und-Lisu">
    <font weight="400" style="normal">NotoSansLisu-Regular.ttf</font>
</family>
<family lang="und-Mand">
    <font weight="400" style="normal">NotoSansMandaic-Regular.ttf</font>
</family>
<family lang="und-Mtei">
    <font weight="400" style="normal">NotoSansMeeteiMayek-Regular.ttf</font>
</family>
<family lang="und-Talu">
    <font weight="400" style="normal">NotoSansNewTaiLue-Regular.ttf</font>
</family>
<family lang="und-Nkoo">
    <font weight="400" style="normal">NotoSansNKo-Regular.ttf</font>
</family>
<family lang="und-Olck">
    <font weight="400" style="normal">NotoSansOlChiki-Regular.ttf</font>
</family>
<family lang="und-Rjng">
    <font weight="400" style="normal">NotoSansRejang-Regular.ttf</font>
</family>
<family lang="und-Saur">
    <font weight="400" style="normal">NotoSansSaurashtra-Regular.ttf</font>
</family>
<family lang="und-Sund">
    <font weight="400" style="normal">NotoSansSundanese-Regular.ttf</font>
</family>
<family lang="und-Sylo">
    <font weight="400" style="normal">NotoSansSylotiNagri-Regular.ttf</font>
</family>
<family lang="und-Syre">
    <font weight="400" style="normal">NotoSansSyriacEstrangela-Regular.ttf</font>
</family>
<family lang="und-Tagb">
    <font weight="400" style="normal">NotoSansTagbanwa-Regular.ttf</font>
</family>
<family lang="und-Lana">
    <font weight="400" style="normal">NotoSansTaiTham-Regular.ttf</font>
</family>
<family lang="und-Tavt">
    <font weight="400" style="normal">NotoSansTaiViet-Regular.ttf</font>
</family>
<family lang="und-Tibt">
    <font weight="400" style="normal">NotoSansTibetan-Regular.ttf</font>
    <font weight="700" style="normal">NotoSansTibetan-Bold.ttf</font>
</family>
<family lang="und-Tfng">
    <font weight="400" style="normal">NotoSansTifinagh-Regular.ttf</font>
</family>
<family lang="und-Vaii">
    <font weight="400" style="normal">NotoSansVai-Regular.ttf</font>
</family>
<family lang="und-Yiii">
    <font weight="400" style="normal">NotoSansYi-Regular.ttf</font>
</family>
<family>
    <font weight="400" style="normal">NotoSansSymbols-Regular-Subsetted.ttf</font>
</family>
<family lang="zh-Hans">
    <font weight="400" style="normal" index="2">NotoSansCJK-Regular.ttc</font>
</family>
<!-- TODO: Add Bopo -->
<family lang="zh-Hant">
    <font weight="400" style="normal" index="3">NotoSansCJK-Regular.ttc</font>
</family>
<family lang="ja">
    <font weight="400" style="normal" index="0">NotoSansCJK-Regular.ttc</font>
</family>
<family lang="ko">
    <font weight="400" style="normal" index="1">NotoSansCJK-Regular.ttc</font>
</family>
<family lang="und-Zsye">
    <font weight="400" style="normal">NotoColorEmoji.ttf</font>
</family>
<family>
    <font weight="400" style="normal">NotoSansSymbols-Regular-Subsetted2.ttf</font>
</family>
<family>
    <font weight="400" style="normal">DroidSansFallback.ttf</font>
</family>
<!--
    Tai Le and Mongolian are intentionally kept last, to make sure they don't override
    the East Asian punctuation for Chinese.
-->
<family lang="und-Tale">
    <font weight="400" style="normal">NotoSansTaiLe-Regular.ttf</font>
</family>
<family lang="und-Mong">
    <font weight="400" style="normal">NotoSansMongolian-Regular.ttf</font>
</family>
2 Likes

Hello,
Finally, I used the FontFix app (safe app), and I downloaded all the SF Pro Display variants. I replaced every Roboto font by the San Francisco ones, and it works great.
(example: roboto_regular-italic.ttf replaced by sf-pro-display_regularitalic.ttf)
So I didn’t need the code, but thanks for your searches and efforts.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.