As of new changes the installation logic has changed dated: 11/22/2023 for seamless installation across KSU/Magisk/Newer android versions. With no font or font related module (that modifies fonts.xml) installed (if installed any uninstall all of them and reboot) open any Terminal app eg. Termux run this following command with root permission.
su -c '
rm -rf /sdcard/MFFM/fontsxml
[ ! -d /sdcard/MFFM/fontsxml ] && mkdir -p /sdcard/MFFM/fontsxml
cp /system/etc/fonts.xml /sdcard/MFFM/fontsxml/fonts.xml
cp /product/etc/fonts_customization.xml /sdcard/MFFM/fontsxml/fonts_customization.xml'
You only need to do this once. Repeat this only if you change ROM! After this you are ready to install, update, dirty install, install MFFMv11/12 modules without any trouble.
You can use the template as an installer or as a regular Magisk module template, or both at the same time.
To use it as a module template you can copy the renamed files directly to the template's Files folder to make a permanent module.
To use the template as an installer first you have to create a folder named MFFM in your local storage. Then you can copy your renamed files to the MFFM & MFFM/fonts folder. Other detailed instructions are in particular sections of the respective topis (Which file/script goes where).
Remember you can use both mode (Template/Installer) at the same, so it really doesn't matter where ever (inside the template or in the MFFM foler) you put your files. The template should work just fine.
If same category files (eg. Bengali Fonts) are present in both the MFFM folder and inside of the module (in Files folder), the module's content will be flashed and MFFM folder's content will be ignored.
MT Manager file manager. With MT Manager you can directly edit the zip file without unpacking it..zip archive to make a module.Black.ttf
BlackItalic.ttf
Bold.ttf
BoldItalic.ttf
Medium.ttf
MediumItalic.ttf
Regular.ttf
Italic.ttf
Light.ttf
LightItalic.ttf
Thin.ttf
ThinItalic.ttf
Files folder of the template to make a module.MFFM.ttf and copy it to Files folder of the template.Fonts inside MFFM folder. Put the renamed files in the MFFM/Fonts folder. Flash the template/Installerinstaller mode, you can shove the renamed files directly to the Template's Files folder to use it as a permanent module.Beng-Regular.ttf
Beng-Medium.ttf
Beng-Bold.ttf
MFFM Folder (/LocalStorage/MFFM) or make a zip archive directly (without putting them in a folder) and rename it to Beng-FontName.zip and then copy it to MFFM folder to avoid messy environment inside the MFFM folder. Eg: Beng-Kalpurush.zipEmoji- before the name of your Emoji font and put it in the MFFM folder. EG: rename WhatsappEmoji.ttf to Emoji-WhatsappEmoji.ttfMFFM Folder (/LocalStorage/MFFM) folder alongside the renamed emoji file.Monospace font, add Mono- before the name of your font and put it in MFFM folder. EG: rename Firacode-Regular.ttf to Mono-Firacode-Regular.ttfSerif-Regular.ttf
Serif-Italic.ttf
Serif-Bold.ttf
Serif-BoldItalic.ttf
MFFM folder or make a zip archive following this naming pattern, 'Serif-YourFontName.zip' eg Serif-SourceSerif.zip and as usual copy the archive to MFFM folder.MFFM folder, if the naming patterns are followed it will be installed once you flash your original font module.su -c /data/adb/modules/mffm11/service.shsu -c /data/adb/modules/mffmv12/service.sh