feat(libSceFreeType): expose font format and embedding flags #9090
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9090"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-21T12:04:40Z.
What
Add the guest exports
FT_Get_X11_Font_FormatandFT_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_Formatalias 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. Main47fa6eecf8was merged into the branch before validation.0xFFFF; missing OS/2 and non-SFNT BDF faces follow native results. Format labels and pointers are compared with the actual native face, including multiple faces and null/empty handles. Borrowed native format strings remain readable after faces and libraries are destroyed in the test.-Wall -Wextra -Werrorsource checks and conventions passed.47fa6eecf8. All system libraries and nine FreeType test targets built; all nine registered tests passed (0.23 / 0.16 / 0.08 / 0.07 / 0.07 / 0.06 / 0.07 / 0.08 / 0.12 s). C++ changes merged cleanly; temporary CMake/debt resolutions and merge commits are not published.aWMUKhiwUbkandH4eyE4ez7O4.Historical build limitation (2026-10-21): the default Windows build on the stated base failed at
ImageArrayWindowPastLayerLimit.cppbecause 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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:28:45Z.
Progress report (
2f161d4→114df69)📈 System libraries: 42.46% (+0.04%, +9 implemented functions)
✅ 9 implemented
FT_Get_CMap_Format_nid_postfixFT_Get_CMap_Language_ID_nid_postfixFT_Get_Charmap_Index_nid_postfixFT_Get_FSType_Flags_nid_postfixFT_Get_X11_Font_Format_nid_postfixFT_Outline_Check_nid_postfixFT_Outline_Get_CBox_nid_postfixFT_Outline_Reverse_nid_postfixFT_Outline_Translate_nid_postfixImported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-22T03:31:31Z.
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.
Imported from boykopovar/AnyPS5. Originally posted by santhoshkumar-dev on 2026-10-22T07:37:40Z.
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.