Commit Graph

47 Commits (cd43bae0b4891ced0d62ddd1460e20e45522f552)

Author SHA1 Message Date
Alexander Medvednikov f293874c05
all: replace []byte with []u8 2022-04-17 12:14:28 +02:00
Larpon 7fbd856bf8
os: add font module, move from gg (#13144) 2022-01-13 12:16:18 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
playX 5f0160bf11
js,gg: more work on porting gg to JS backend (#12903) 2021-12-20 16:18:21 +03:00
kahsa 480f3876ee
gg: fix system_font_path (#12533) 2021-11-21 19:12:15 +02:00
kahsa 3f37ab2ef2
gg: fix system_font_path on Linux (#12477) 2021-11-16 12:14:35 +03:00
kahsa 77a1e3dedb
gg: improve system_font_path on linux (#12290) 2021-10-25 15:16:29 +03:00
Larpon 42c088896a
gg: mute font print on Linux, use flag debug_font instead (#12082) 2021-10-07 03:45:02 +03:00
yuyi 108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Delyan Angelov 576664e31f
gg,sokol,stbi,gx,fontstash: cleanup for -Wimpure-v 2021-08-12 22:42:42 +03:00
Daniel Däschle ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
KJ Lawrence 751b1cffd3
gg: fix default font style loading (#10309) 2021-06-04 20:00:32 +03:00
Enzo 906b207e58
checker: deprecate using V strings in C function calls (#10140) 2021-05-20 09:17:44 +03:00
spaceface 73352583e7
ci: fix all `-cstrict` warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
Delyan Angelov 9b78d7d21d
tools: check formatting of more modules with `v test-cleancode`, colorize `v vet` output 2021-03-24 12:39:39 +02:00
Nick Treleaven 446631ceb5
checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
Delyan Angelov d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
Delyan Angelov a9e9079e48
gg: make .set_cfg public 2021-02-27 09:15:39 +02:00
Larpon de9813233f
gg: support getting system font on Android (#8611) 2021-02-06 18:36:43 +02:00
Alexander Medvednikov d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
Lukas Neubert 8b61891348
fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
shadowninja55 a569dc17e8
gg: allow fonts loaded with $embed_file() to be used (#8263) 2021-01-21 23:07:47 +02:00
Lukas Neubert ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Alexander Medvednikov 89952edd25 gg: remove unnecessary copy in draw_text 2020-12-05 00:03:46 +01:00
Alexander Medvednikov 0ddf0a4b92 gg: custom bold font path 2020-12-01 16:30:25 +01:00
Alexander Medvednikov d50c919879 clipboard: fix get_text() on macos 2020-11-20 01:08:55 +01:00
Alexander Medvednikov 26785668c0 autofree: more tests; gg: fix draw_circle with hidpi 2020-11-15 15:09:44 +01:00
Delyan Angelov 8b2e704741 examples: make `v -prod build-examples` pass without warnings/errors 2020-10-18 09:48:13 +03:00
JalonSolov 2fd6c05445
fonts: fix so it does not try for RobotoMonoMono.ttf (#6507) 2020-09-29 13:20:37 +03:00
Delyan Angelov af37c7ac6b gg: prevent messages about missing font variants without `-d debug_font` 2020-09-26 09:36:46 +03:00
Lukas Neubert 2ea94d621f
gg: fix loading variants of many fonts in new_ft() (#6468) 2020-09-25 11:52:57 +02:00
Delyan Angelov dbce01792c gg: try 3 different fonts in system_font_path on MacOS 2020-09-24 17:09:08 +03:00
Delyan Angelov d4fbf422b3 gg: support transparency for rect/triangle/etc primitives too 2020-09-20 12:05:30 +03:00
Alexander Medvednikov 6921d46185 all: rune type for `` literals 2020-08-27 06:46:37 +02:00
Alexander Medvednikov 9da7349f63 gg: minor fixes 2020-08-20 08:32:05 +02:00
spaceface777 c1651bd271
gg: fixes and Android support (#6161) 2020-08-19 07:10:42 +02:00
Nick Treleaven bab5c21224
parser: warn when fixed-size ArrayInit doesn't have trailing `{}`. (#6137) 2020-08-16 04:54:05 +02:00
Delyan Angelov 5bf3b6eda3 gg: fix running tetris and ui examples on linux 2020-07-28 12:12:44 +03:00
Alexander Medvednikov 65159b8070 gg: bold/mono/italic fonts 2020-07-27 21:20:23 +02:00
Alexander Medvednikov db2346069a gg: always use stb_truetype for now 2020-07-13 01:02:50 +02:00
Alexander Medvednikov cad816a19d gg: text_height() 2020-07-12 12:48:42 +02:00
Alexander Medvednikov 40da32a141 gg: text_width() 2020-07-12 01:46:21 +02:00
Alexander Medvednikov e0fcd565d5 gg: fix default text size 2020-07-07 17:33:24 +02:00
Louis Schmieder f8a89e3f8f
gg: fix text rendering (#5727) 2020-07-07 17:09:35 +02:00
Alexander Medvednikov 013c0e6e16 gg: make FT private 2020-07-06 21:40:24 +02:00
Alexander Medvednikov 48f1f814d2 gg: minor fixes 2020-07-06 20:40:54 +02:00
Alexander Medvednikov 0ed8199da2 gg: merge ft module 2020-07-06 20:29:09 +02:00