[PR #3772] Fontlib #3707

Open
opened 2026-02-27 22:04:42 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3772
Author: @w1naenator
Created: 11/4/2025
Status: 🔄 Open

Base: mainHead: fontlib


📝 Commits (10+)

  • f6aeb24 dummy fontlib libs
  • 1c48cc1 register font libs
  • e4cbd8f typo fix
  • 2b66b62 added font error file
  • aa56e60 added sceFontCharacterGetBidiLevel (from RE)
  • c63b1a0 fixup
  • 6470992 sceFontCharacterGetTextOrder , sceFontCharacterLooksFormatCharacters , sceFontCharacterLooksWhiteSpace RE
  • 97153ed sceFontCharacterRefersTextBack,sceFontCharacterRefersTextNext,sceFontRenderSurfaceInit,sceFontRenderSurfaceSetScissor RE
  • aa2cf2b sceFontRenderSurfaceSetStyleFrame ,sceFontStyleFrameGetEffectSlant RE added
  • 6184d51 clang fix

📊 Changes

14 files changed (+13008 additions, -701 deletions)

View changed files

📝 .gitmodules (+4 -0)
📝 CMakeLists.txt (+5 -1)
📝 externals/CMakeLists.txt (+10 -0)
externals/freetype (+1 -0)
📝 src/core/libraries/font/font.cpp (+5161 -385)
📝 src/core/libraries/font/font.h (+589 -299)
src/core/libraries/font/font_internal.cpp (+1918 -0)
src/core/libraries/font/font_internal.h (+892 -0)
📝 src/core/libraries/font/fontft.cpp (+18 -7)
📝 src/core/libraries/font/fontft.h (+21 -3)
src/core/libraries/font/fontft_internal.cpp (+3606 -0)
src/core/libraries/font/fontft_internal.h (+778 -0)
📝 src/core/libraries/libs.cpp (+4 -0)
📝 src/emulator.cpp (+1 -6)

📄 Description

  1. Remove libSceFont.sprx, libSceFontFt.sprx, and libSceFreeTypeOt.sprx from the shadPS4 sys_modules directory (optional).

  2. Dump the folders /preinst/common/font and /system/common/font2 from your PS4.

  3. Create a new folder (preferably inside the shadPS4 directory) named sys_fonts, and place the two dumped folders into it.

  4. If the fonts are located outside the default shadPS4 sys_fonts directory, open config.toml in the shadPS4 directory and, under [General], set sysFontPath = "full\path\to\folder\where\font\and\font2\folders\located\" to the path of the folder you created that contains the dumped font folders.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/3772 **Author:** [@w1naenator](https://github.com/w1naenator) **Created:** 11/4/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fontlib` --- ### 📝 Commits (10+) - [`f6aeb24`](https://github.com/shadps4-emu/shadPS4/commit/f6aeb24c91051f252b27e04cdf85a19650b9db94) dummy fontlib libs - [`1c48cc1`](https://github.com/shadps4-emu/shadPS4/commit/1c48cc16c8cc61f697432f88db7dca1b4d25927d) register font libs - [`e4cbd8f`](https://github.com/shadps4-emu/shadPS4/commit/e4cbd8f8abba6c02574628fca4de78eb96c74bf8) typo fix - [`2b66b62`](https://github.com/shadps4-emu/shadPS4/commit/2b66b6288dcaacbb4f2629c79398a9ad481c168c) added font error file - [`aa56e60`](https://github.com/shadps4-emu/shadPS4/commit/aa56e601dc1261ffedb66a2b39073c6bcd2b34c0) added sceFontCharacterGetBidiLevel (from RE) - [`c63b1a0`](https://github.com/shadps4-emu/shadPS4/commit/c63b1a058c2f3580e2b1429e5a57c1a7bd4e4a50) fixup - [`6470992`](https://github.com/shadps4-emu/shadPS4/commit/647099200745207c14d484b6e4e44faa624d517b) sceFontCharacterGetTextOrder , sceFontCharacterLooksFormatCharacters , sceFontCharacterLooksWhiteSpace RE - [`97153ed`](https://github.com/shadps4-emu/shadPS4/commit/97153ed62ce2560b8e533326a7df92a85ecdca6d) sceFontCharacterRefersTextBack,sceFontCharacterRefersTextNext,sceFontRenderSurfaceInit,sceFontRenderSurfaceSetScissor RE - [`aa2cf2b`](https://github.com/shadps4-emu/shadPS4/commit/aa2cf2be84e12e0896bc1395682a95033f537417) sceFontRenderSurfaceSetStyleFrame ,sceFontStyleFrameGetEffectSlant RE added - [`6184d51`](https://github.com/shadps4-emu/shadPS4/commit/6184d516212d7071a96296b871739a9ec6b66b9a) clang fix ### 📊 Changes **14 files changed** (+13008 additions, -701 deletions) <details> <summary>View changed files</summary> 📝 `.gitmodules` (+4 -0) 📝 `CMakeLists.txt` (+5 -1) 📝 `externals/CMakeLists.txt` (+10 -0) ➕ `externals/freetype` (+1 -0) 📝 `src/core/libraries/font/font.cpp` (+5161 -385) 📝 `src/core/libraries/font/font.h` (+589 -299) ➕ `src/core/libraries/font/font_internal.cpp` (+1918 -0) ➕ `src/core/libraries/font/font_internal.h` (+892 -0) 📝 `src/core/libraries/font/fontft.cpp` (+18 -7) 📝 `src/core/libraries/font/fontft.h` (+21 -3) ➕ `src/core/libraries/font/fontft_internal.cpp` (+3606 -0) ➕ `src/core/libraries/font/fontft_internal.h` (+778 -0) 📝 `src/core/libraries/libs.cpp` (+4 -0) 📝 `src/emulator.cpp` (+1 -6) </details> ### 📄 Description 1. Remove `libSceFont.sprx`, `libSceFontFt.sprx`, and `libSceFreeTypeOt.sprx` from the shadPS4 `sys_modules` directory (optional). 2. Dump the folders `/preinst/common/font` and `/system/common/font2` from your PS4. 3. Create a new folder (preferably inside the shadPS4 directory) named `sys_fonts`, and place the two dumped folders into it. 4. If the fonts are located outside the default shadPS4 `sys_fonts` directory, open `config.toml` in the shadPS4 directory and, under `[General]`, set `sysFontPath = "full\path\to\folder\where\font\and\font2\folders\located\"` to the path of the folder you created that contains the dumped font folders. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3707
No description provided.