Open GoogleCodeExporter opened 8 years ago
Whoops, forgot to remove the note about aleph after removing aleph itself.
Original comment by chortos@inbox.lv
on 25 Feb 2013 at 2:03
While researching how the @font feature of GDI works, I noticed that Wine
rotates all characters over a certain codepoint, so that's what I implemented
as well.
What GDI probably does (I havent't tested) is checking the Unicode script
property. It should be easy to query HarfBuzz's character database (which is
likely UCDN anyway :)) and only rotate CJK characters.
Original comment by g...@chown.ath.cx
on 3 Mar 2013 at 10:08
The check is, as far as I can tell:
So, it's font- and potentially locale-specific! Fun. It's really just trying to determine "is this character fullwidth", poorly, and rotating anything that is.
When rotation is enabled (per above), alternates are selected via the mort
or gsub
tables, using the vert
feature from gsub
.
Yeah, that’s starting to sound like what I’ve seen when I tried to dig in. (You probably went deeper than I did; thanks!) And why I’ve been worrying that HarfBuzz’s writing mode may not be the solution.
There is also Unicode Vertical_Orientation property, but you probably want to be GDI-copmatible which might not exactly match this property.
Original issue reported on code.google.com by
chortos@inbox.lv
on 25 Feb 2013 at 2:02