[Swap Mode] Add fonts to the BytaFont library

Launch BytaFont and select the "BytaFont" tab. Tap "Add new fonts", choose a font you like and tap "View on Cydia (Swap Mode)".
Cydia is automatically launched at the correct package page and you can install the font from there.

[Swap Mode] Change font system wide

This is the shortest path to apply a font in Swap Mode:
- select the Swap Mode tab
- tap Basic
- tap a font
- tap Yes

[Swap Mode] Change font in specific apps

The sections you can choose to skin separately via BytaFont are listed in the Advanced tab. This does not depend on us, but on how iOS handles fonts.
You can choose to change the font in one or more of the following sections:
- Keyboard
- System
- iBooks
BytaFont can apply the font independently for the sections listed above, but it is not possible to skin only one application at a time.
For example, it is not possible to change the font for Calendar while keeping the original font for Mail, because both apps use the System font. The same for Messages, Clock, Music, Facebook, Twitter and so on: they all use the system font and BytaFont cannot change the way these apps are implemented.

[Swap Mode] Recover from an endless respring loop

When you apply a font which was not properly ported, your device will complain with an infinite respring loop. You do not need to restore the device, and of course it is not useful to do crazy things such as removing the BytaFont app or the font folder.
"Use Substrate" disabled: just follow this how-to to restore the original fonts manually.
"Use Substrate" enabled: just restart your device and hold the volume up button while booting; then, you may run BytaFont to change configuration.

[Swap Mode] Restore the original fonts via BytaFont

"Use Substrate" disabled:
- if you uninstall the applied font via Cydia, you won’t have your original fonts back
- if you uninstall BytaFont, you won’t have your original fonts back
The Basic tab lets you restore the original fonts via the Restore BytaFont Backup button: just tap it to revert to the factory fonts.
Please notice that BytaFont creates the backup only the first time you apply a font and if you update or uninstall/reinstall BytaFont, the backup is kept (the backup is overwritten ONLY when you update to a newer iOS version).
To restore the original Arabic/Chinese/Hebrew/Japanese/Khmer/Korean/Thai/Emoji fonts you have to tap the Restore BytaFont Backup button available in the proper section.

"Use Substrate" enabled:
The Basic tab lets you restore the original fonts via the Restore BytaFont Backup button: just tap it to revert to the factory fonts.
To restore the original Arabic/Chinese/Hebrew/Japanese/Khmer/Korean/Thai/Emoji fonts you have to tap the Restore BytaFont Backup button available in the proper section.

[Swap Mode] Restore the original fonts manually

"Use Substrate" disabled:
To restore the original fonts manually follow these steps: - connect to your device (via SSH or USB)
- go to /var/mobile/Library/Preferences/BytaFontBackup and copy (do not cut!) all the files you find there. Take note of the names of all the files you have copied
- go to /System/Library/Fonts/Cache and delete only the files having the names you have marked in the previous step
- paste the files (be sure that the all the files have been successfully copied to /System/Library/Fonts/Cache before proceeding with the next step)
- respring your device
- change the language to force the cache cleanup
If you are manually restoring the font files due to a respring loop, once the copy is completed your device should automatically restart – if not, press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.

"Use Substrate" enabled:
You don't need to do anything: system files are not modified.

[Swap Mode] Fix a broken BytaFont Backup

"Use Substrate" disabled:
In case your BytaFont Backup does not contain the original fonts you may follow these steps:
- copy the original fonts to /var/mobile/Library/BytaFont3/SwapMode/Original
- launch BytaFont
- select the Settings tab
- tap on "Repair BytaFont Backup"
- select the Swap Mode tab and tap on "Restore BytaFont Backup" in the proper section (e.g. Basic, Emoji..)

"Use Substrate" enabled:
You don't need to do anything: system files are not modified, the ByaFont Backup does not exist.

Change the font size

To change the font size install "BytaFont Tweak Mode".
Then, in the Tweak Mode tab tap Extras->Lockscreen and select a font for the time and one for the date (leave Base to use the font choosed in the Base section).
You may also set a different font size using the slider (Size delta).

Change the lock screen fonts

To change the lock screen fonts install "BytaFont Tweak Mode".
Then, in the Tweak Mode tab tap to Extras -> Lock screen and select a font for the Time and/or for the Date. Use the slider (Size delta) to decrease/increase the fonts size up to 25%.
To apply the configuration tap Respring in the upper right corner.

Remove BytaFont and fonts

If "Use Substrate" is disabled restore the original fonts before uninstalling BytaFont; then just uninstall BytaFont via Cydia.
All the fonts depending on BytaFont will be automatically removed.
If you have added fonts to your BytaFont library manually, you may remove them manually.

[Tweak Mode] Add fonts to the BytaFont library

Once you have installed BytaFont, you can find hundreds of fonts to apply to your device in Cydia. All the BytaFont fonts ported by our team are distributed only through the ModMyi repository.

Install fonts via BytaFont

Launch BytaFont and select the "BytaFont" tab. Tap "Add new fonts", choose a font you like and tap "Install (Tweak Mode)".
Tap "Done" in the upper left corner to close the browser: you will find your new font in the Tweak Mode section.

Install fonts downloaded via Safari

If you are browsing Google Fonts or dafont.com (or any other website distributing fonts in zip files) from Safari and you find a font you like just download the zip file directly from Safari and then tap "Open in" -> "Copy to BytaFont 3": you will find your new font(s) in the Tweak Mode section.

Install fonts via Cydia

Launch Cydia and tap Sources -> All Sources -> Fonts (BytaFont Tweak Mode), choose a font you like and tap Install.

Install fonts through a configuration profile

You may use an application (e.g. AnyFont, HiFont..) or a website (e.g. FontSquirrel.com) to install fonts through a configuration profile: they will appear in BytaFont under the iOS Fonts section.

Install fonts manually

In order to use a font in Tweak Mode there is no need to "port" it. Of course, you may need to edit the original font to change its size, add missing glyphs (e.g. accented letters) or missing styles.

To add a font to your BytaFont’s library follow these steps:
- connect to your device (e.g. via SSH)
- go to /Library/BytaFont; if you do not have the folder BytaFont, just create it manually
- create a folder YourFontName.font and copy the ttf/otf files there

You may copy as many files as you want; BytaFont supports 18 different styles at the same time.
There are no rules for the font names (in case of duplicates BytaFont will use the first found) and for the file names.

To support the "Auto pair" feature, you need to name the ttf files as follow (case insensitive):
YourFontName.font\Regular.ttf
YourFontName.font\Italic.ttf
YourFontName.font\Black.ttf
YourFontName.font\BlackItalic.ttf
YourFontName.font\Heavy.ttf
YourFontName.font\HeavyItalic.ttf
YourFontName.font\Bold.ttf
YourFontName.font\BoldItalic.ttf
YourFontName.font\Semibold.ttf
YourFontName.font\SemiboldItalic.ttf
YourFontName.font\Medium.ttf
YourFontName.font\MediumItalic.ttf
YourFontName.font\Light.ttf
YourFontName.font\LightItalic.ttf
YourFontName.font\Thin.ttf
YourFontName.font\ThinItalic.ttf
YourFontName.font\UltraLight.ttf
YourFontName.font\UltraLightItalic.ttf

[Tweak Mode] Change font system wide

This is the shortest path to apply a font in Tweak Mode:
- select the Tweak Mode tab
- switch Enabled to ON
- tap Font
- tap Auto pair
- tap a font
- tap Respring in the upper right corner

[Tweak Mode] Change font in specific apps

You can customise the font at application level: for each app you can decide to use the fonts set as base configuration (this is the default), or you can choose a different font only for a specific app or you can exclude certain apps so that they will not use a custom font at all.
When you have done changing the configuration according to your preferences, just tap “Respring”.

[Tweak Mode] Restore the original fonts via BytaFont

These are the steps to follow:
- select the Tweak Mode tab
- switch Enabled to OFF
- tap Respring in the upper right corner

[Tweak Mode] Recover from an endless respring loop

The tweak mode extends parts of the system by using Substrate.
If you are in a respring loop you can disable Substrate by holding the volume up button while booting; then, you may run BytaFont to change font or disable the Tweak Mode entirely, by turning Off the Enabled switch in the Tweak Mode tab.

[Tweak Mode] Delete a font from within BytaFont

This how-to applies to Tweak Mode fonts manually installed: to remove a font installed via Cydia, use Cydia.
- tap Edit in the upper right corner of the tab with the fonts list
- for each font manually installed a the deletion control in the left side of the row will appear: tap it
- tap Delete
- tap Done in the upper right corner

Fix Cydia errors when installing BytaFont or fonts

The Refresh button in the upper left corner of the Changes tab in Cydia should fix any cache errors (e.g. “size mismatch” or “cannot locate package”); in addition you may try re-launching Cydia.
If it is not enough, you may try to remove and add the ModMyi repository again:
- open Cydia and tap Sources -> Edit button, delete ModMyi.com and tap Done
- tap on Cydia -> “More Package Sources”, select ModMyi and tap Install