mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
Old claim: every glyph keeps an opaque int attribute whose valid values are unknown, and an attribute never set is 0. What the code does: sceFontGlyphDefineAttribute returns SCE_FONT_ERROR_INVALID_PARAMETER for any value other than 0x10 or 0x11, stores the value in one bit of the glyph flags and returns the previous 0x10 or 0x11, so a glyph never set reads 0x10. sceFontGlyphGetAttribute returns 0x10 or 0x11 and ignores its attribute argument. The handle pair sceFontDefineAttribute and sceFontGetAttribute is unchanged: an int that reads 0 when never set. Permalinks at the audited SHA: - https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceFont/src/Render.cpp#L527-L549 - https://github.com/boykopovar/AnyPS5/blob/b1b5353cfcee098ed17e3ba8a6e616bee97c9215/core/libs/prx/libSceFont/src/Style.cpp#L147-L162