Skip to content

feat(libSceFont): implement non-graphics font control and attribute functions - #4143

Closed
jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceFont-control-attributes
Closed

jagrat04 wants to merge 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceFont-control-attributes

Conversation

@jagrat04

Copy link
Copy Markdown
Contributor

What

Implement non-graphics font control, attribute management, and word boundary stubs across libSceFont:

  • Render.cpp: Implement sceFontGlyphRenderImage, directional render helpers sceFontGlyphRenderImageHorizontal and sceFontGlyphRenderImageVertical, attribute query sceFontGlyphGetAttribute, and workspace buffer size query sceFontGetGlyphExpandBufferState.
  • Library.cpp: Implement library control stub sceFontControl, dynamic attribute storage sceFontDefineAttribute and sceFontGetAttribute, and feature support/metrics query stubs sceFontSupportGlyphs, sceFontGetFontMetrics, sceFontGetFontStyleInformation, and sceFontGetFontGlyphsOutlineProfile returning SCE_FONT_ERROR_NO_SUPPORT_FUNCTION.
  • Text.cpp: Implement word boundary stubs sceFontCreateWords, sceFontDestroyWords, and sceFontWordsFindWordCharacters.
  • Unimplemented.cpp: Removed stubs for all 15 implemented non-graphics functions, leaving exclusively the GPU shader pipeline (sceFontGraphics*).
  • core/libs/tests/GuestFont.cpp: Added test coverage asserting attribute definition/lookup, directional rendering, expand buffer queries, and unsupported function error codes.
  • docs/dev/TechnicalDebt.md: Documented non-modeled word and outline metric stubs under Silent stubs.

Tested

  • python tools/check_conventions.py --base origin/main passed with 0 violations.
  • Verified absence of C++ comments in implementation files.
  • Verified all stubs follow TechnicalDebt.md silent-stub documentation.

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 in TechnicalDebt
  • 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: none
  • AI-assisted: yes

@github-actions

Copy link
Copy Markdown

Progress report (bca7a29 → c30aecf)

📈 System libraries: 86.91% (+0.44%, +15 implemented functions)

✅ 15 implemented
Library Name
libSceFont sceFontControl
libSceFont sceFontCreateWords
libSceFont sceFontDefineAttribute
libSceFont sceFontDestroyWords
libSceFont sceFontGetAttribute
libSceFont sceFontGetFontGlyphsOutlineProfile
libSceFont sceFontGetFontMetrics
libSceFont sceFontGetFontStyleInformation
libSceFont sceFontGetGlyphExpandBufferState
libSceFont sceFontGlyphGetAttribute
libSceFont sceFontGlyphRenderImage
libSceFont sceFontGlyphRenderImageHorizontal
libSceFont sceFontGlyphRenderImageVertical
libSceFont sceFontSupportGlyphs
libSceFont sceFontWordsFindWordCharacters
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceFont sceFontWordsFindWordCharacters

@github-actions

github-actions Bot commented Oct 12, 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
#2150 sceFontGlyphRenderImage
sceFontGlyphRenderImageHorizontal
sceFontGlyphRenderImageVertical
#3826 docs/dev/TechnicalDebt.md L47
#4299 core/libs/tests/GuestFont.cpp L58

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Closing, same as #4089: 15 functions with assumed signatures and no title that calls them, and the Tested section has no build or test run. Please reopen per function with the title ID and the log line where it stops; #2150 already covers the three sceFontGlyphRenderImage* calls.

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.

2 participants