5 comments

  • yorwba 1 hour ago
    A more academic treatment of justifying Arabic-script text can be found in https://quod.lib.umich.edu/j/jep/3336451.0023.104?view=text;...
    • mackeye 1 hour ago
      awesome article! i appreciated the alternatives and misc. workarounds to OT/unicode typesetting toward the end, very helpful :D (go blue!)
  • mohamedkoubaa 23 minutes ago
    I'd like to see some more mainstream usage of disconnected fonts for Arabic, for example like these: https://www.arabaddigital.com/en/article/2100-Quarantining-o...
  • jansan 8 minutes ago
    Very interesting. I just implemented a text shaper and renderer from scratch with support for complex scripts like Arabic, Nastaliq and Indic (will soon post about it here on HN). Now that you write about it, the lack of stretching really is a deficiency in the OpenType spec.

    If you want a solution for this it has to happen in the rendering step, not the shaping (which is HarfBuzz's main task). The shaper has no information about the available space, but when rendering you could stretch individual glyphs to the desired width, similar to adjusting the width of whitespace in Latin, but more complex, because you actually have to modify the glyphs with a scale transform. I am not an expert on Arabic script by any means, but this should be possible IMO. It would at least be an interesting experiment.

  • tensegrist 1 hour ago
    the entire article has llm tells all over it. i read it anyway, and i'm grateful for all the facts i learned (although i cannot trust all of them, for reasons aforementioned), but i genuinely (!) think it's a shame because the topic is an absolutely fascinating one

    (i will permit myself to not explain in excruciating detail why i feel that way about this, as we have this discussion several times a day on this site)

    • masfuerte 25 minutes ago
      Same, and it is a shame. Reading it is wearisome.
    • aelsi 57 minutes ago
      can you point out why you think that's the case?
  • adam_rida 3 hours ago
    very interesting, arabic is a good reminder that text rendering is mostly solved for the scripts that shaped the defaults.

    The hard part is that typography, shaping, bidi behavior, font fallback, search, and the editor model all leak into each other.

    You cannot fix one layer cleanly when the assumptions are wrong in all of them.