Commit Graph

28 Commits

Author SHA1 Message Date
Hajime Hoshi
df266e8acf text/v2: add Glyph.OriginOffset{X,Y}
Closes #3070
2024-08-23 03:59:16 +09:00
Hajime Hoshi
a3d084e2de text/v2: add Glyph.Origin{X,Y}
Closes #3070
2024-08-23 00:00:30 +09:00
Matúš Ollah
7ddc349ae6
text/v2: fix typo (#3004) 2024-05-31 00:57:32 +09:00
lvyaoting
f6927232f2
all: fix function names in comment (#2957)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
2024-04-08 14:27:27 +09:00
Hajime Hoshi
85c0f4444b text/v2: update comments 2024-04-07 19:22:37 +09:00
Hajime Hoshi
dfa8f21e52 text/v2: update go-text and remove unnecessary string conversions
Updates go-text/typesetting#152
2024-04-03 03:41:57 +09:00
Hajime Hoshi
6878bd79fc text/v2: bug fix: correct rendering vertical texts in Mongolian
Closes #2849
Updates go-text/typesetting#111
2023-12-21 22:58:15 +09:00
Hajime Hoshi
d8af9dff28 text/v2: bug fix: Glyph's XOffset/YOffset should be considered 2023-12-12 01:33:25 +09:00
Hajime Hoshi
668124d25c text/v2: add a non-image glyphs for index info 2023-12-05 20:06:06 +09:00
Hajime Hoshi
800835d081 Revert "text/v2: rename Glyph -> Cluster"
This reverts commit f0d23de3d3.

Reason: Cluster doesn't represent a cluster but a part of a cluster.
2023-12-05 19:44:32 +09:00
Hajime Hoshi
f0d23de3d3 text/v2: rename Glyph -> Cluster
This also changes AppendClusters to return cluster info even if a
cluster doesn't have a glyph.
2023-12-05 18:00:30 +09:00
Hajime Hoshi
a444f2dd40 text/v2: replace Metrics.Height/Width with HLineGap and VLineGap
Updates #2454
2023-12-02 14:33:41 +09:00
Hajime Hoshi
b925f28104 text/v2: add MultiFace
Closes #2845
2023-11-26 03:32:22 +09:00
Hajime Hoshi
f34f93a117 text/v2: remove the common UnsafeInternal and add ones to GoTextFaceSource and StdFace
Updates #2454
2023-11-25 22:56:22 +09:00
Hajime Hoshi
b9b365a576 text/v2: bug fix: Measure didn't work correctly with vertical faces
This also updates examples/texti18n to use text.Measure.

Updates #2143
Updates #2454
2023-11-23 23:25:10 +09:00
Hajime Hoshi
c0e41de921 text/v2: add AppendVectorPath
Closes #1937
Updates #2454
2023-11-20 03:38:26 +09:00
Hajime Hoshi
03a8aaee5c text/v2: define different key types for StdFace and GoTextFaceSource 2023-11-19 23:40:47 +09:00
Hajime Hoshi
57ae07eb36 text/v2: let StdFace and GoTextFaceSource have their own glyph caches 2023-11-19 23:32:49 +09:00
Hajime Hoshi
4755da6a08 text/v2: performance optimization by caching glyph bounds
Updates #2454
2023-11-17 13:07:59 +09:00
Hajime Hoshi
68d5fa46e2 text/v2: add variations to glyph cache keys 2023-11-16 13:15:51 +09:00
Hajime Hoshi
2e60c67ec9 text/v2: improve rendering quality for small faces
Closes #2843
2023-11-16 12:02:50 +09:00
Hajime Hoshi
b2c45a369a text/v2: remove the suffix 'InPixels'
Now all the units are pixels, the suffix is redundant.

Updates #2454
2023-11-15 21:53:58 +09:00
Hajime Hoshi
a612b3c861 text/v2: reduce members in structs 2023-11-15 14:38:03 +09:00
Hajime Hoshi
586a4b6d6e all: rename sizeInPoints -> sizeInPixels 2023-11-15 14:03:22 +09:00
Hajime Hoshi
f2180a5dc5 text/v2: rename SizeInPoints -> SizeInPixels 2023-11-15 13:14:36 +09:00
Hajime Hoshi
4694b78d54 text/v2: refactoring 2023-11-15 12:34:02 +09:00
Hajime Hoshi
5354ccc44f examples/2048: use text/v2
Also, this changes fixes a bug in (*text/v2.GoTextFace).Metrics.

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