Commit Graph

24 Commits

Author SHA1 Message Date
Hajime Hoshi
d19a774316 text/v2: refactoring: unify a cache struct 2024-10-27 22:45:02 +09:00
Hajime Hoshi
41e8d063e8 text/v2: refactoring 2024-10-27 22:45:02 +09:00
Hajime Hoshi
17c2b1b325 text/v2: refactoring 2024-10-27 18:39:10 +09: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
Hajime Hoshi
bf7acd54bb text/v2: refactoring 2024-04-21 22:46:51 +09:00
Hajime Hoshi
11223d9fae text/v2: reuse HarfBuzzShaper
Updates #2963
2024-04-17 15:59:53 +09:00
Hajime Hoshi
f0396ba915 text/v2: always use Segmenter
Updates go-text/typesetting#127
2023-12-24 03:30:27 +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
5a8cfb2561 text/v2: refactoring 2023-12-11 03:43:13 +09:00
Hajime Hoshi
8777d2c529 text/v2: allow io.Reader for NewGoTextFaceSource
This enables to pass fs.File to NewGoTextFaceSource.

Updates #2454
2023-11-26 17:21:47 +09:00
Hajime Hoshi
415b9c382f text/v2: refactoring 2023-11-25 22:59:01 +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
989d749475 text/v2: add (*GoTextFaceSource).Metadata
Updates #2454
2023-11-25 22:32:24 +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
7a08737326 text/v2: add copyCheck to GoTextFaceSource 2023-11-19 23:15:18 +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
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