Skip to content

replace Text with TextTtf, added TextOtf#35

Merged
hermet merged 1 commit into
mainfrom
hermet/otf
May 8, 2026
Merged

replace Text with TextTtf, added TextOtf#35
hermet merged 1 commit into
mainfrom
hermet/otf

Conversation

@hermet
Copy link
Copy Markdown
Member

@hermet hermet commented May 5, 2026

dependency: thorvg/thorvg#4370

@hermet hermet self-assigned this May 5, 2026
Copilot AI review requested due to automatic review settings May 5, 2026 12:13
@hermet hermet added the enhancement Improve examples label May 5, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR splits the previous generic text example into a TrueType-specific example and a new OpenType-specific example, so the examples repo can showcase both font formats as ThorVG adds OTF support.

Changes:

  • Renames/refines the TTF example content in TextTtf.cpp, mainly updating labels and layout.
  • Adds a new TextOtf.cpp example that mirrors the text feature showcase using .otf fonts.
  • Updates src/meson.build to build TextTtf and TextOtf instead of the previous single Text example.

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 3 comments.

File Description
src/TextTtf.cpp Adjusts the existing TTF demo’s displayed text and vertical spacing.
src/TextOtf.cpp Adds a full new OpenType demo, including file-backed and memory-backed font loading.
src/meson.build Replaces the old text example target with separate TTF/OTF example targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/TextOtf.cpp
Comment thread src/meson.build
Comment thread src/TextOtf.cpp Outdated
@hermet hermet merged commit c4df6a7 into main May 8, 2026
2 checks passed
@hermet hermet deleted the hermet/otf branch May 8, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improve examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants