Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wrapped functions, Optimized routines, Lsb/Rsb positioning, Subpixel …
…Hinting

- Add 'Shaded' and 'Solid' text wrapped functions:
  TTF_Render{UTF8,TEXT,UNICODE}_{Shaded,Solid}_Wrapped()

- More accurate positioning algorithm:
  it takes into account left and right side bearing error correction

  See "{rsb,lsb}_deltas" and NOTE in FT_GlyphSlotRec:
  https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_GlyphSlotRec

- Light Subpixel hinting:
  Better results for small text sizes: glyph are rendered at subpixel positions,
  they look blurrier but uniformly positioned
  This mode is slower since glyphs are rendered on the fly. Use TTF_HINTING_LIGHT_SUBPIXEL to enable it

- Add SSE2, NEON, int32 and int64 optimized routines:
  There is x3 speed improvement for any size and solid, shaded, blended rendering

- Possibility to use Duff's device to unroll loops (disabled)

Since it uses aligned memory surfaces, it requires an SDL2 version with flag SDL_MEMALIGNED.

More details in https://bugzilla.libsdl.org/show_bug.cgi?id=4361
  • Loading branch information
1bsyl committed Jan 31, 2019
1 parent 60a6536 commit 31589bd
Show file tree
Hide file tree
Showing 2 changed files with 1,982 additions and 1,033 deletions.

0 comments on commit 31589bd

Please sign in to comment.