Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jingmatrix/magiskfonts

Add custom fonts to Android for system-wise usage
https://github.com/jingmatrix/magiskfonts

android font magisk magisk-module

Last synced: 3 months ago
JSON representation

Add custom fonts to Android for system-wise usage

Awesome Lists containing this project

README

        

# Magisk

This module configures fonts that you add for system-wise usage.

## Usage

1. Clone this repository: `git clone --depth=1 https://github.com/JingMatrix/MagiskFonts`;
2. Create a directory `system/fonts`: `mkdir -p system/fonts`;
3. Put your fonts inside `system/fonts`, currently `ttf` files work well;
4. Pack and install the zip module: `7z a MagiskFonts.zip META-INF customize.sh module.prop system tool`.

## Why do I need it?

Add fonts for applications like browsers and e-books readers.
However, in Android 15, `Chrome` and `Google Play Books` ignore customs fonts, while `FireFox` does render them.

## Reference

Parser location in [Android Code Search](https://cs.android.com/): [frameworks/base/graphics/java/android/graphics/FontListParser.java](https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/graphics/java/android/graphics/FontListParser.java).