feat(libSceFreeType): implement FT_Bitmap_Embolden and FT_GlyphSlot_Own_Bitmap #10591
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10591"
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:39:05Z.
What
Adds
FT_Bitmap_EmboldenandFT_GlyphSlot_Own_Bitmapto libSceFreeType, both following the bundled FreeType 2.13.3 (ftbitmap.c).FT_Bitmap_Emboldenforwards the guest bitmap with LP64 strengths and republishes the result; a strength outside the hostFT_Posrange throws, which only matters where the native type is 32 bits (Windows).FT_GlyphSlot_Own_Bitmapcopies a bitmap-format slot's bitmap into native-owned storage and republishes the guest slot. Console signatures and errors are unverified; the debt entries say so.Commits: for each function in turn (
FT_Bitmap_Embolden, thenFT_GlyphSlot_Own_Bitmap), the implementation, its test and its debt entry.Tested
Linux x86-64, GCC, full CMake build (Ninja, Release).
guest_freetype_bitmap_emboldencompares error code and resulting bitmap with native FreeType for mono, gray, LCD and BGRA bitmaps over several strengths and sizes, plus null library, null bitmap and an empty bitmap.guest_freetype_slot_own_bitmaploads the BDF fixture glyph through the guest and the oracle, checks the copied bitmap matches, the guest and host slot share the new buffer, the buffer differs from the original, a second call is a no-op, and null and unregistered slots behave as native. The host CPU (Xeon E5-1620 v2) fails the startup CPU-feature gate, so I ran both tests with that check disabled in a local, uncommitted edit; both exit 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)