Commit Graph

9155 Commits

Author SHA1 Message Date
Hajime Hoshi
037a818601 internal/graphicsdriver/opengl: bug fix: go-vet failed 2023-12-20 03:06:58 +09:00
Hajime Hoshi
4ef7b5c166 internal/graphicsdriver/opengl: refactoring: hide SetGLFWClientAPI
Updates #2714
2023-12-20 02:47:19 +09:00
Hajime Hoshi
f6f0cf05e6 internal/ui: refactoring: move updateVsyncOnRenderThread to the OpenGL driver
Updates #2714
2023-12-20 02:38:20 +09:00
Hajime Hoshi
12ae411d15 internal/graphicsdriver/opengl, internal/graphicsdriver/opengl/gl: refactoring 2023-12-20 02:19:33 +09:00
Hajime Hoshi
6fd18150d8 internal/graphicsdriver/opengl: move egl to the package opengl
Updates #2714
2023-12-19 23:41:14 +09:00
Hajime Hoshi
425b4dd99a internal/graphicsdriver/opengl: fix a wrong comment
Updates #2517
2023-12-18 01:44:27 +09:00
LidlDev
c80a82c501
examples/platformer: add more descrpitive comments (#2866) 2023-12-18 01:25:57 +09:00
bsski
b8df1217c3
all: fix typos (#2864) 2023-12-17 22:42:34 +09:00
Hajime Hoshi
3e50f59ca4 all: add go.work and go.work.sum to .gitignore 2023-12-17 17:33:01 +09:00
Hajime Hoshi
d7ebc19d04 internal/ui: refactoring: reduce usages of renderThread
Updates #2714
2023-12-17 16:21:07 +09:00
Hajime Hoshi
d6439c9e6c cmd/ebitenmobile: bug fix: failed to resolve dependencies
Something was changed by updating gomobile (76ac6878050a2eef81867f2c6c21108e59919e8f),
and an additional go-mod-tidy is now required.
2023-12-16 19:52:00 +09:00
Hajime Hoshi
9fe6f1e62c all: update dependencies 2023-12-16 18:38:25 +09:00
Şeta Narut
87c1766451
vector: typo (segument -> segment) (#2860) 2023-12-12 23:38:43 +09: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
c903cea637 text/v2: adjust offsets for vertical texts 2023-12-12 01:40:42 +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
159c19a671 text: cache metrics 2023-12-11 17:40:10 +09:00
Hajime Hoshi
5a8cfb2561 text/v2: refactoring 2023-12-11 03:43:13 +09:00
Hajime Hoshi
e0741dcd94 text/v2: refactoring 2023-12-09 22:07:17 +09:00
BioErrorLog
d05afcbcfa
all: fix typos (#2859) 2023-12-08 13:35:52 +09:00
Hajime Hoshi
b2e979a84d all: update go-text
go-text/typesetting#118 is now fixed.
2023-12-07 13:06:52 +09:00
Hajime Hoshi
3b1684978b internal/ui: typo 2023-12-06 23:00:58 +09:00
Hajime Hoshi
6a8f37453e text/v2: bug fix: MultiFace should use the last face as the final resort 2023-12-05 21:40:53 +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
800101da90 text/v2: fix an error message
Updates #2845
2023-12-04 01:17:46 +09:00
Hajime Hoshi
81e0e61a43 text/v2: let NewMultiFace return an error
Updates #2845
2023-12-04 01:16:47 +09:00
Hajime Hoshi
fa3ec12731 text/v2: bug fix: the given slice to MultiFace should be copied
Updates #2845
2023-12-02 22:59:14 +09:00
Hajime Hoshi
dfa058a961 text/v2: change the signature of NewMultiFace
Updates #2845
2023-12-02 22:51:37 +09:00
Hajime Hoshi
5790597a15 text/v2: add LimitedFace
Closes #2857
2023-12-02 16:01:28 +09:00
Hajime Hoshi
a6b4a7a2ac text/v2: add NewMultiFace
Updates #2857
2023-12-02 14:56:03 +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
d91455c0a7 internal/graphicscommand: add Shader.id 2023-12-01 21:31:50 +09:00
Hajime Hoshi
6a7688d3ac all: update go-text 2023-11-30 14:50:45 +09:00
Hajime Hoshi
2bad1b928f text/v2: remove Metadata.Monospace
Apparently calculating to detection whether a face is monospace or not
is pretty heavy as this might iterate all the glyphs.
2023-11-28 12:22:09 +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
8291a98756 text/v2: update comments 2023-11-26 15:52:40 +09:00
Hajime Hoshi
b0c5a49f96 text/v2: bug fix: metadata was lacked 2023-11-26 14:23:52 +09:00
Hajime Hoshi
b925f28104 text/v2: add MultiFace
Closes #2845
2023-11-26 03:32:22 +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
6f5fab47aa all: update purego 2023-11-25 18:46:30 +09:00
Hajime Hoshi
b2ec6c2fd4 all: update go-text 2023-11-25 18:43:59 +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
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
c4b16bec9b text/v2: add an example for font variations
Updates #2454
2023-11-23 22:30:13 +09:00
Hajime Hoshi
b1bd03329e examples/fontfeature: improve a text 2023-11-23 19:30:03 +09:00
Hajime Hoshi
daa14ac686 examples/fontfeature: show the state of 'zero'
Updates #2454
2023-11-23 18:51:36 +09:00