Delyan Angelov
bd9564e38b
ci: fix failing ttf_test.v after making `char` unavailable for variable names
2021-11-22 18:28:25 +02:00
Enzo
e3b65092d6
parser: deprecate `size_t` ( #11443 )
2021-09-08 13:09:32 +03:00
yuyi
8be2be8311
all: change 'if !(a in b)' to 'if a !in b' ( #11330 )
2021-08-29 11:55:18 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init ( #10842 )
2021-07-20 11:17:08 +03:00
R cqls
cdb31119f3
x.ttf: apply ctx.scale for x and y in draw_text_bmp ( #10598 )
2021-06-28 13:32:17 +03:00
Delyan Angelov
96adfc9d5b
x.ttf: vfmt the examples in the README.md
2021-06-24 11:15:13 +03:00
Delyan Angelov
f18265e6a8
gg: remove obsolete usages of `use_ortho: true`
2021-06-24 11:15:12 +03:00
Uwe Krüger
60c880a0cc
vlib: use `malloc_noscan()` where possible ( #10465 )
2021-06-15 14:47:11 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder ( #10263 )
2021-05-31 14:21:06 +03:00
Delyan Angelov
8a380f4699
tools: make `v test-cleancode` test everything by default ( #10050 )
2021-05-08 13:32:29 +03:00
Alexander Medvednikov
0567cbe431
examples: fix compilation with -prod
2021-04-23 14:48:07 +03:00
spaceface
73352583e7
ci: fix all `-cstrict` warnings with gcc and clang ( #9792 )
2021-04-19 15:38:48 +03:00
Lukas Neubert
46e7e27ba3
v vet: give an error for trailing whitespace ( #9574 )
2021-04-09 13:22:14 +03:00
Larpon
8caabf0e9e
sokol: update to floooh/sokol@c602d83 ( #9607 )
2021-04-07 20:39:23 +02:00
Delyan Angelov
04095f4088
ci: fix failing `v -W build-tools` and `v -W build-examples`; run vfmt.
2021-03-19 09:49:26 +02:00
Lukas Neubert
a67d49050c
math: add a pure V `math.mathutil`, with generic `min`, `max` and `abs` functions ( #9176 ), and use it consistently
2021-03-12 11:28:04 +02:00
spaceface
b712af56fd
all: bring back `panic(err.msg)` -> `panic(err)` ( #9022 )
2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax ( #8950 )
2021-02-28 23:20:21 +03:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write ( #8892 )
2021-02-22 13:18:11 +02:00
Nick Treleaven
ea803113c3
checker: check `unsafe` V function calls ( #8752 )
2021-02-14 19:31:42 +01:00
Delyan Angelov
e5a84719ca
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}`
2021-01-26 16:43:17 +02:00
Alexander Medvednikov
d991712b3c
gg: native rendering mode on macOS
2021-01-23 10:25:43 +01:00
penguindark
ee9f9c9d81
x.ttf: add README, some improvements ( #8157 )
2021-01-17 03:11:47 +01:00
penguindark
1d1fda9522
x.ttf: fix for the MSVC `get_string` pointer issue ( #8139 )
...
* fix tab and spaces in indentation
* fix for glyph not found error
* fix for get_String in ttf.v pointer problems with MSVC
* avoid second return in get_string
* move from u32 to u64 to byteptr in 64 bit systems
2021-01-15 20:40:56 +02:00
penguindark
55e3e50b9b
ttf: improvement on not found glyphs ( #8050 )
2021-01-12 00:49:58 +01:00
Delyan Angelov
692a718428
examples: use os.resource_abs_path, so `v run examples/ttf_font/example_ttf.v` works
2021-01-10 20:36:50 +02:00
penguindark
c067cc0357
vlib: add a TTF font loader and render in `x.ttf` ( #7995 )
2021-01-10 20:14:41 +02:00