/SubtitleFontPNP

The ultimate anime (or whatever video) subtitle font dynamic loading solution, works with MPC-HC

Primary LanguagePHPGNU Affero General Public License v3.0AGPL-3.0

Subtitle Font PNP

The ultimate anime subtitle font dynamic load solution :)

Usage

  1. Create config.js & config.php accordingly
  2. Put your fonts mess into build_index/source/ folder
  3. Run index.js to build the index
  4. Run install.php to symlink used fonts to fonts folder aside to the *.ass files
  5. Open MPC-HC and enjoy :)

FAQ

How it works?

The MPC-HC loads fonts dynamically from fonts folder: reference.

Why PHP + NodeJS?

NodeJS helps us to build the index.

PHP script helps us to actually "install" the fonts (by symlink).

Synology NAS comes with PHP 7.3 out of the box and 8.0 can be installed easily, while NodeJS is limited to v12.