Skip to content

feat(libSceFreeType): expose font format and embedding flags - #9090

Merged
oneandonlydean merged 4 commits into
boykopovar:mainfrom
santhoshkumar-dev:codex/freetype-face-properties
Oct 23, 2026
Merged

oneandonlydean merged 4 commits into
boykopovar:mainfrom
santhoshkumar-dev:codex/freetype-face-properties

Conversation

@santhoshkumar-dev

@santhoshkumar-dev santhoshkumar-dev commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Add the guest exports FT_Get_X11_Font_Format and FT_Get_FSType_Flags. They query the owned native face, return its driver format string and preserve the full unsigned 16-bit embedding flags. Null handles follow native FreeType. The generated BDF fixture is shared with the charmap-metadata regression.

Both names/NIDs are present in the PS5 3.20 inventory. The modern FT_Get_Font_Format alias is absent there and is not added. Behavior follows bundled FreeType 2.13.3's format service and FSType service. Console signatures, labels, flags and string lifetime remain unverified and are recorded in debt.

This branch builds on #9075; merge it first. #8247 is merged, and the remaining #8286 CMake dependency is ordered by that chain. No competing implementation was found in main or open, closed and merged PR history.

Tested

Windows 11 x64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, BUILD_TESTING=ON. Main 47fa6eecf8 was merged into the branch before validation.

Historical build limitation (2026-10-21): the default Windows build on the stated base failed at ImageArrayWindowPastLayerLimit.cpp because static alignment 65536 exceeded MinGW COFF's maximum 8192. Merged #8310 fixes that declaration; this is no longer a current-main blocker. The library/test results above retain their stated PR head and base.

No title, PS5 hardware or Linux runtime was tested.

Rebase audit (2026-10-21): rebased onto main d099bc6cd8, including the now-merged #8247 and #8289. All system libraries built. A temporary combination of the seven remaining FreeType branches passed all nine tests (0.07 / 0.07 / 0.06 / 0.06 / 0.16 / 0.04 / 0.06 / 0.06 / 0.05 s); all seven branches passed conventions. Temporary integration commits were not published.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: feat(libSceFreeType): reverse and translate guest outlines #9075
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@santhoshkumar-dev
santhoshkumar-dev force-pushed the codex/freetype-face-properties branch from c4df641 to 114df69 Compare October 21, 2026 12:28
@github-actions

Copy link
Copy Markdown

Progress report (2f161d4 → 114df69)

📈 System libraries: 42.46% (+0.04%, +9 implemented functions)

✅ 9 implemented
Library Name
libSceFreeType FT_Get_CMap_Format_nid_postfix
libSceFreeType FT_Get_CMap_Language_ID_nid_postfix
libSceFreeType FT_Get_Charmap_Index_nid_postfix
libSceFreeType FT_Get_FSType_Flags_nid_postfix
libSceFreeType FT_Get_X11_Font_Format_nid_postfix
libSceFreeType FT_Outline_Check_nid_postfix
libSceFreeType FT_Outline_Get_CBox_nid_postfix
libSceFreeType FT_Outline_Reverse_nid_postfix
libSceFreeType FT_Outline_Translate_nid_postfix

@github-actions github-actions Bot added build docs prx and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@Ondra97

Ondra97 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

I opened #9588 for FT_Glyph_Get_CBox. I declared #9090 for merge order because its #9075 -> #9069 -> #9064 chain carries the same outline helpers/tests and shares the CMake/debt insertions. The inherited helper bodies and outline test match #9064 exactly. Retain one copy of those helpers plus the distinct new features.

@santhoshkumar-dev

santhoshkumar-dev commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Confirmed the dependency chain. Merge our branches in this order: #8286, #9064, #9069, #9075, then #9090. #9588 follows those prerequisites together with its other declared dependencies. Keep one copy of the inherited outline helpers/tests while retaining the distinct font-property, outline-mutation, charmap-metadata and glyph-query features.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 9453 FT_Get_CMap_Format
FT_Get_CMap_Language_ID
FT_Get_Charmap_Index
FT_Get_FSType_Flags
FT_Get_X11_Font_Format

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 9848 core/libs/prx/libSceFreeType/CMakeLists.txt
docs/dev/debt/libSceFreeType.md

@oneandonlydean
oneandonlydean merged commit b3d9852 into boykopovar:main Oct 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants