Pen Font Engine++ is the most advanced pen text engine on Scratch, offering the highest quality text rendering and the best font support available. Compared to Stamp Font Engine, Pen Font Engine, and PTE Ultra+, Pen Font Engine++ contains new features such as setting the x-position of the first line of text and calculating the width of a line of text. It is also faster than Pen Font Engine and fixes the word wrapping bugs of PTE Ultra+.
Compared to Pen Font Engine and Pen Font Renderer, Pen Font Engine++ features greatly improved text rendering. Text rendered at smaller sizes by Pen Font Engine++ is much clearer and easier to read than text rendered by its predecessors. Additionally, Pen Font Engine++ is compliant with the non-zero winding rule, supporting more fonts than before. Previously, Pen Font Renderer used the even-odd rule and Pen Font Engine used an unreliable method to sort the segments of each character in a font before importation.
If you want to use Pen Font Engine++ in your own projects, click the See inside button and read the documentation in the Tutorial sprite.
If you want a faster text engine, use either Pen Text Engine++ or Stamp Font Engine.
Font Injector:
https://RexScratch.github.io/PenFontEngineInjector/
Other Text Engines
Pen Text Engine++:
https://scratch.mit.edu/projects/406678232/
Stamp Font Engine:
https://scratch.mit.edu/projects/349634648/
Credits:
- Fonts: Google Fonts
- JS Libraries: opentype.js, JSZip
- Sorting Algorithm: Wikipedia
- Everything Else:
@-Rex-
Changelog
v1.0.4 (2020-07-11):
- Tweaked character rendering to use a slightly increased pen size
v1.0.3 (2020-06-18):
- Fixed minor bug with word wrapping that occurred when word length exceeded line length
v1.0.2 (2020-06-16):
- Fixed minor bug with kerning when using word wrapping
v1.0.1 (2020-06-16):
- Clearing the cache or character data now also clears the _raster and _rasterDir lists
v1.0 (2020-06-15):
- Released