feat(libSceFreeType): implement FT_GlyphSlot_Oblique and FT_GlyphSlot_Embolden #10593
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10593"
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 MarcZX10 on 2026-10-24T11:43:56Z.
What
Adds
FT_GlyphSlot_ObliqueandFT_GlyphSlot_Emboldento libSceFreeType, following the bundled FreeType 2.13.3 (ftsynth.c). LikeFT_Render_Glyph, each adapter first copies the guest slot's outline point changes into the native slot, runs the native call on the native slot, and republishes the guest slot (metrics, advance, bitmap and outline).FT_GlyphSlot_Emboldencovers outline and bitmap slots. A guest outline coordinate outside the hostFT_Posrange throws, which only matters where the native type is 32 bits (Windows). Console signatures are unverified; the debt entries say so.Commits: for each function in turn (
FT_GlyphSlot_Oblique, thenFT_GlyphSlot_Embolden), the implementation, its test and its debt entry.Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_slot_synthesisloads the square-glyph fixture through the guest and a native oracle, applies each call to both after the guest slot's outline was modified, and compares format, advance, metrics and every outline point; it also checks the outline actually changed, runsFT_GlyphSlot_Emboldenon a BDF bitmap glyph and compares the bitmap, offsets and metrics, and covers null and unregistered slots. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran the test with that check disabled in a local, uncommitted edit; it exits 0. Windows was not run.tools/check_conventions.pyandgit diff --checkpass. No title or GPU involved.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)Rebase validation (2026-10-25)
Rebased onto upstream
mainate7e3e9c1984c293f06bff08428b8c89b7b932ac2. The rebase preserved theFT_Outline_Copyimplementation already on main and added this PR's two glyph-slot adapters; CMake and debt changes applied cleanly. The exact rebased head passespython3 tools/check_conventions.py --base upstream/main --head HEADandgit diff --check. The earlier focused FreeType test run described above was on the pre-rebase head. I could not rebuild it after rebasing because the checkout has no populated SDL2 submodule, and CMake system-dependency configuration stops because SDL2 development files are unavailable. No post-rebase test result is claimed.