lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I think utf8.len() returns the quantity of Unicode Code Points, not glyphs...

It simply cannot be glyphs, since ligatures are part of the font used, len() without a specific font cannot know the number of glyphs. "fi" for example is a very common ligature being two characters but one glyph. Also one character can be encoded as union of two glyphs. Like in many fonts ö is o plus ". etc.