[One (M8) Android Development] aospid:
# NOTICE: I USE ONLY ENGLISH AND ESPAÑOL LANGUAGES. YOUR EDITING IS DEPENDANT ON THE SYSTEM LANGUAGES THAT YOU REQUIRE, AND THE FONT THAT YOU WANT TO USE!!!

# FOR GODS SAKE, IF YOU ARE NOOB AT THIS, NANDROID BACKUP BEFORE YOU BREAK THE ROM!!!

# You need an update.zip template! Extract it to a working directory.

# Choose a font and rename it to Roboto-Regular.ttf, put it inside a folder (system/fonts/)

# In the working directory, open the META-INF/com/google/android/updater-script with your text editor [Line Breaks must be (\n)], use Notepad++ if using Windoze!

# *EXAMPLE* META-INF/com/google/android/updater-script lines to be added for Global Font

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Clockopia.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/DroidSans.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/DroidSans-Bold.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-Bold.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-BoldItalic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-Italic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-Light.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-LightItalic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-Thin.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto-ThinItalic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/Roboto_Subset_HTC.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/RobotoCondensed-Bold.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/RobotoCondensed-BoldItalic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/RobotoCondensed-Italic.ttf");

symlink("/system/fonts/Roboto-Regular.ttf","/system/fonts/RobotoCondensed-Regular.ttf");

# Save and close the updater-script file.

# Copy /system/etc/fallback_fonts.xml file to /system/etc/ in your working directory.

# *EXAMPLE* Open and edit the /system/etc/fallback_fonts.xml with below config:

<familyset>

<family>

<fileset>

<file>AndroidEmoji.ttf</file>

</fileset>

</family>

<family>

<fileset>

<file>WindowsEmoji.ttf</file>

</fileset>

</family>

<family>

<fileset>

<file>DroidSansFallback.ttf</file>

</fileset>

</family>

# Save and close the fallback_fonts.xml file.

# Copy /system/etc/system_fonts.xml file to /system/etc/ in your working directory.

# *EXAMPLE* Edit the /system/etc/system_fonts.xml with below config:

<familyset>

<family>

<nameset>

<name>sans-serif</name>

<name>sans-serif-light</name>

<name>sans-serif-thin</name>

<name>sans-serif-condensed</name>

<name>serif</name>

<name>times</name>

<name>times new roman</name>

<name>arial</name>

<name>helvetica</name>

<name>tahoma</name>

<name>verdana</name>

<name>palatino</name>

<name>georgia</name>

<name>baskerville</name>

<name>goudy</name>

<name>fantasy</name>

<name>cursive</name>

<name>ITC Stone Serif</name>

<name>monospace</name>

<name>courier</name>

<name>courier new</name>

<name>monaco</name>

</nameset>

<fileset>

<file>Roboto-Regular.ttf</file>

</fileset>

</family>

<family>

<nameset>

<name>Droid Sans</name>

</nameset>

<fileset>

<file>DroidSans.ttf</file>

<file>DroidSans-Bold.ttf</file>

</fileset>

</family>

</familyset>

# Save and close the system_fonts.xml file.

# Zip the META-INF and system folders from the working directory and flash it in recovery.

# You can do all of this on-the-fly live on the device, but you must know what you are doing (i.e no mistakes and symbolic linking done through the terminal) and set the permissions afterwards!