ra’s avatarra’s Twitter Archive—№ 41,719

      1. …in reply to @orta
        @orta @FlappyRoyale not that i know of, not in the way you'd do them for latin languages. the "draw character, increment x by character width, repeat" algorithm assumes left to right and (importantly) non-cursive text. for arabic you need to be able to choose which glyph to render based on context.
    1. …in reply to @ra
      @orta @FlappyRoyale so you'd have to encode that somewhere. to *really* do it some letters might actually connect higher or lower than others, so you need to encode that as well. this is exactly what OpenType fonts, and shaping libraries like harfbuzz use this information to get it right.
  1. …in reply to @ra
    @orta @FlappyRoyale in principle you could probably rig up a minimal solution yourself using a spritesheet, but i havent seen that done in practice. (sorry this turned into three tweets, i lose sleep over this stuff 🙃)