PPC Wiki

Home

❯

Rendering Text

Rendering Text

Jun 16, 20251 min read

  • obviosly the vid by Sebastian Lague: https://www.youtube.com/watch?v=SO83KQuuZvg is awesome…

    • he tries rendering Vector Fonts… which is definetly quite the adventure
    • with a fun comment: Pasted image 20241229192238.png
  • video by VoxelRifts: https://www.youtube.com/watch?v=qcMuyHzhvpI

    • Bitmap Fonts are very very easy to render, but sooo not scalable at all
    • Vector Fonts are hard to render… see Sebastian Lague’s video
    • SDF Fonts = Signed Distance Field Fonts are a bitmap with pixels colored in a gradient based on how far away from the glyph they are
      • they have a problem when rendereing at a scale much bigger then the original glyph
    • MSDF Foints = Mulichannel Signed Distance Field Fonts… are like sdf fonts, but with miltiple channels/colors, so that corners always have edges of different colors
  • to render text there are also some things to consider… mostly for non eng fonts

    • Text Shaping (text rendering)
      • going from a list of Unicode glyphs to a list of the actual glyphs to draw with the exact possitions of each one
    • Text Shaping (text rendering) steps
      • Substitution (text rendering)
      • Reordering (text rendering)
      • Positioning (text rendering)
    • there are libs for Text Shaping (text rendering):
      • Harfbuzz (probably more on Linux)
      • Uniscribe (probably mor on Windows (os, software))

Graph View

Backlinks

  • Modern Computer Graphics

Created with Quartz v4.5.1 © 2025

  • GitHub
  • Discord Community