Commit Graph

5 Commits

Author SHA1 Message Date
Hajime Hoshi
769de21ad1 text/v2: bug fix: some OpenType fonts didn't work
NotoSansJP-VF.otf from https://github.com/notofonts/noto-cjk/releases/tag/Sans2.004
was not rendered correctly. This change fixes this issue.

Updates go-text/typesetting#122
2023-12-12 14:45:41 +09:00
Hajime Hoshi
20c216b2b1 text/v2: bug fix: glyph image sizes might not be enough
Hajime found that one glyph 'ら' was not rendered correctly in a
vertical Japanese text in examples/texti18n. This was due to an
incorrect calculation of the image sizes.

This change fixes this issue by always adding +1 to the sizes no matter
what the glyph size is or the position is. It is in theory possible to
determine whether this addition is necessary, but this is pretty
complicated and might cause other issues.
2023-11-25 01:26:52 +09:00
Hajime Hoshi
c0e41de921 text/v2: add AppendVectorPath
Closes #1937
Updates #2454
2023-11-20 03:38:26 +09:00
Hajime Hoshi
ca8a2896b4 text/v2: performance optimization by using image.RGBA
Apparently, image.RGBA doesn't use the slow path at draw.Draw, which
is called from a rasterizer's Draw.

Updates #2454
2023-11-17 13:14:12 +09:00
Hajime Hoshi
fe35180b78 text/v2: implement GoTextFace
Closes #675
Updates #2143
Updates #2454
2023-11-15 03:40:45 +09:00