Zyko
d02960eb57
Fixed missing import
2024-09-18 21:28:10 +02:00
Zyko
69b541d64d
Main merge
2024-09-18 21:24:33 +02:00
Hajime Hoshi
e058bb6fd3
all: update go-text
...
Unfortunately this adds a breaking change to (*GoTextFaceSource).UnsafeInternal.
Updates #3082
2024-09-09 23:29:49 +09:00
Zyko
ec06c68fa3
Re-use internal/packing logic and remove external dep
2024-08-05 20:25:54 +02:00
Zyko
4601cffaba
Cleanup
2024-07-27 18:01:06 +02:00
Zyko
5e8d969034
PoC text/v2 glyph atlas
2024-07-27 17:41:53 +02:00
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