Jupeyy
34d597f428
Always render line, if we already are on a new line
2020-10-28 15:57:08 +01:00
Dennis Felsing
23c005144b
consistent formatting for dbg_msg
...
no capital letters, no spaces
2020-10-26 10:04:03 +01:00
bors[bot]
b0803b26e0
Merge #3077
...
3077: UI Elements r=def- a=Jupeyy
Build will fail bcs of clang-format,
i'll update this comment to explain.
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-10-26 08:37:25 +00:00
Jupeyy
13c5e039c9
Some chat fixes
2020-10-25 15:57:21 +01:00
bors[bot]
e5870ab06f
Merge #3113
...
3113: Visual Chat Update r=def- a=Banana090
https://github.com/ddnet/ddnet/pull/3093
Co-authored-by: Дядя Женя <spy090@yandex.ru>
2020-10-20 16:03:57 +00:00
Jupeyy
74515d4b95
UI Elements
2020-10-19 23:52:29 +02:00
Дядя Женя
6708a7a69d
Chat visual update
2020-10-17 15:50:35 +02:00
Jupeyy
186206d40c
Fix and change text cursor
2020-10-17 15:26:33 +02:00
def
5c1b8cd221
Fix clang-analyzer-deadcode.DeadStores
...
/media/ddnet/src/game/client/components/statboard.cpp:288:3: warning: Value stored to 'tw' is never read [clang-analyzer-deadcode.DeadStores]
2020-10-14 15:45:47 +02:00
Jupeyy
2d88d44b07
Reset renderflags directly after use
2020-10-12 17:46:06 +02:00
Jupeyy
5ebabe2ece
Text alignment
2020-10-07 04:44:35 +02:00
def
62dc12aacb
Fix all Multiplication type alerts by CodeQL
...
> Multiplication result converted to larger type
> A multiplication result that is converted to a larger type can be a
> sign that the result can overflow the type converted from.
Example: https://github.com/ddnet/ddnet/security/code-scanning/17?query=ref%3Arefs%2Fheads%2Fmaster
2020-10-05 19:03:54 +02:00
def
61e985457d
Clean up font buffers & texturedata
2020-09-30 23:59:33 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
bors[bot]
edb4462f8a
Merge #2814 #2818
...
2814: Remove saving to other servers r=Learath2 a=def-
sv_sql_valid_servernames is no longer required
2818: Load fonts from memory (fixes #2810 ) r=Learath2 a=def-
Missing: Freeing the memory again. But not so important since we keep
the same fonts until end of process anyway in our case.
@QingGo Could you give this a try from the Github build artifacts? If not, I can provide you a nightly build.
Co-authored-by: def <dennis@felsin9.de>
2020-09-15 17:16:21 +00:00
Jupeyy
fbdd66c092
Improve grow
2020-09-14 16:42:33 +02:00
Jupeyy
8923116324
Fix entity text
2020-09-14 16:42:21 +02:00
def
77d47a85ee
Load fonts from memory ( fixes #2810 )
...
Missing: Freeing the memory again. But not so important since we keep
the same fonts until end of process anyway in our case.
@QingGo Could you give this a try from the Github build artifacts?
2020-09-13 23:06:12 +02:00
TsFreddie
f71c36285f
Textrender: count glyphs and chars separately
2020-09-03 23:53:26 +01:00
bors[bot]
53e03192dd
Merge #2722
...
2722: Increase default font texture size r=heinrich5991 a=Jupeyy
Now that we have fallback fonts this makes sense.
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-09-03 15:38:45 +00:00
Jupeyy
b0bd0a8c62
Increase default font texture size
2020-09-03 14:18:44 +02:00
def
c85ffb90af
Revert "Revert Jupeyy's OpenGL changes"
...
This reverts commit 3eab3f5eb7
.
2020-08-29 12:10:53 +02:00
def
3eab3f5eb7
Revert Jupeyy's OpenGL changes
...
Emergency-revert for 14.5.1 release, too many problems
2020-08-26 20:03:22 +02:00
bors[bot]
9ba36991a9
Merge #2655
...
2655: Entity text should use space more effectively r=def- a=Jupeyy
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-08-26 16:07:58 +00:00
Jupeyy
410c4b3250
Entity text should use space more effectivly
2020-08-26 15:56:23 +02:00
bors[bot]
694db44ee2
Merge #2598
...
2598: Allow specifying an OpenGL version manually r=def- a=Jupeyy
Ofc don't merge, we'll test it first, and if we want merge it, i'd need to enable shader compability for OpenGL 4+, and general support for OpenGL 3.1 and 3.2(bcs i think they already don't allow some older GL commands).
Also i never really read in the OpenGL 1.x specification, i remember that older OpenGL versions required glBegin and stuff like that
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2020-08-25 15:35:30 +00:00
Jupeyy
a07e9ac2cf
Add OpenGL 1.x, 2.x, 3.x support ( fixes #2619 ) ( fixes #2607 )
2020-08-22 10:22:51 +02:00
def
a388b709d6
Generalize loading fallback fonts
2020-08-20 19:48:08 +02:00
def
446526486d
Use two fonts, one as explicit fallback
...
Merging with fontforge had problems, for example for the Bei (U+5317) in
Beijing, see https://github.com/fontforge/fontforge/issues/4432
2020-08-20 11:13:08 +02:00
Jupeyy
7450e354de
Add OpenGL 4.x support & cleanup
2020-08-19 08:42:09 +02:00
Fireball
ab9b96ddb2
Backported fix for Text() incorrect parameter type (int -> float)
...
The original fix was done by @oy for 0.7.4.
2020-07-15 20:49:14 +01:00
Fireball
b1c17c3248
Backported fix for TextWidth() parameter mix-up
...
Fixes #2511 (Stack-buffer-overflows in some UIs).
The original fix was done by @oy for 0.7.4.
2020-07-15 20:48:29 +01:00
def
d6ba9440ca
Get rid of the annoying font size warnings
...
Since we're not doing anything about them anyway, and I get them
spamming me on every client start.
2020-06-26 23:42:04 +02:00
Ryozuki
ea7f3f0a62
prevent endless loop
2020-04-14 12:51:48 +02:00
Ryozuki
09b79701af
don't check, use dbg_assert
2020-04-11 13:17:20 +02:00
Ryozuki
cde63e2f48
Fix TexEx UB
2020-04-11 13:17:20 +02:00
Learath
6919ed3041
Use updated stub, switch around versions
2020-03-23 15:46:57 +01:00
Learath
060d60f2ea
Output library versions
2020-03-23 15:46:57 +01:00
Magnus Auvinen
6a6a5f00c9
more typesafty in the graphics. introduced the IGraphics::CTextureHandle
...
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
2019-11-22 18:08:37 +01:00
Andrii Vynychenko
0353eb94ef
fix zero fonsize
2019-05-11 18:59:47 +03:00
Andrew
0fffd7705f
Cl_text_entities_size ( #1632 )
...
* new command added
* fix code duplication after merge
* merge #1632 suggestions
* align the texture to the center vertically
* refactor
* fix RenderSwitchOverlay
* Update src/engine/client/text.cpp
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
* Apply suggestions from code review
Co-Authored-By: BannZay <bannzay3@gmail.com>
* Apply suggestions from code review
2019-05-06 14:19:10 +02:00
Learath
979d58f830
Use colors in CTextRender
2019-04-27 01:34:20 +03:00
Learath
93d14a1eca
Inconvenience for windows
2019-04-26 22:36:49 +03:00
Dennis Felsing
cde07b420b
Implement changes suggested by -Wuseless-cast
...
But don't enable it yet because I'm not sure what the best way is.
2019-04-11 19:54:43 +02:00
def
4171db48a9
Fix text render when a glyph is missing ( fixes #1543 )
...
Instead show □ (white square, 0x25a1) as replacement character
The old behaviour was to continue when a glyph was missing, not load
the glyph and then instead fill the bitmap with random garbage that was
still in the buffer. Introduced by https://github.com/ddnet/ddnet/pull/1081
2019-03-28 22:46:08 +01:00
jupeyy
28ba295792
Don't use compression for text rendering
2019-01-20 14:28:59 +01:00
jupeyy
6fc49cbc9e
style
2019-01-06 06:45:47 +01:00
jupeyy
619a33a7d5
text kerning fix, add new text render flags for accurate positioning
2019-01-06 06:42:57 +01:00
yangfl
81a39c229b
Fix typo
2018-07-10 17:29:02 +08:00
jupeyy
88acd47c99
reset font texture at window resize
2018-05-07 06:02:44 +02:00
jupeyy
62352a78dd
respect text alpha channel correctly ( fixes #1124 )
2018-05-07 05:52:02 +02:00
bors[bot]
73cc3a147b
Merge #1110
...
1110: Fix killmessage flag render r=def- a=Jupeyy
Co-authored-by: Jupeyy <jupjopjap@gmail.com>
2018-04-09 20:28:24 +00:00
Jupeyy
52ff132e56
reset color after text is drawn
2018-04-09 22:02:16 +02:00
heinrich5991
f8277267a0
Remove mem_alloc
and mem_free
, use standard C functions instead
...
Replace `mem_free` by `free`, and `mem_alloc` by `malloc` or `calloc`
(the latter one being used to allocate a zeroed array of elements,
sometimes, this makes a call to `mem_zero` superfluous).
This results in having to remove `mem_stats` which previously recorded
the number of allocations and their size that the Teeworlds code did
directly.
Remove OOM handling in `src/game/client/components/binds.cpp`.
Remove needless copying in the CSV code in
`src/game/client/components/statboard.cpp`.
2018-04-09 11:56:39 +02:00
Jupeyy
15f0efc2bd
fix text color if opengl3.3 is off
2018-04-03 17:40:21 +02:00
Jupeyy
53622f56b4
respect the area width in any case
2018-03-26 05:08:21 +02:00
Jupeyy
abb9ba5572
use debug variable in a better way
2018-03-21 16:07:03 +01:00
Jupeyy
70c06be87e
allow non pixel alignment rendering, instead fo changing texture filter
...
add window resize event, and remove the font size limitation
2018-03-21 15:45:08 +01:00
Jupeyy
91b1699994
remove unused and check freetype version
2018-03-15 14:22:08 +01:00
Jupeyy
da311d03c4
use a different texture filter instead of correcting text coordinates
2018-03-15 03:33:22 +01:00
Jupeyy
62c3074c88
add new text renderer engine to support text buffering, cursors, text
...
marking and less character texture updates
2018-03-13 21:49:07 +01:00
def
151da9af97
Remove Emojis
2018-01-25 20:03:18 +01:00
def
9139737aa7
Minor style cleanup
2018-01-15 19:08:33 +01:00
Michał
58b0ae5fc7
Possible emoji rendering fix
2017-10-28 09:08:17 +02:00
Jupeyy
7aa547946b
more warning fixes
2017-09-27 15:01:38 +02:00
Jupeyy
463944b143
fix code pattern mistakes and warnings
2017-09-27 14:52:06 +02:00
Jupeyy
9fd1290734
auto adjust font size for entity overlay
2017-09-27 12:19:39 +02:00
Jupeyy
31844d3353
set max width for custom text texture upload and fixing alignments for
...
texture updates
2017-09-15 03:01:26 +02:00
Jupeyy
5c7c09d380
fixing most wrong code pattern
2017-09-13 20:33:58 +02:00
Jupeyy
6a7e3d5836
add a glyph upload for custom textures
2017-09-12 20:10:27 +02:00
HMH
19a8e7add6
removed some spaces
2017-07-28 20:44:03 +02:00
HMH
5877b17f5a
cleanup freetype
2017-07-21 20:45:23 +02:00
HMH
ae411710ba
unload fonts that are not in use anymore
2017-07-21 19:10:50 +02:00
heinrich5991
f5446ca3b0
Fix unsigned/signed comparison warning when interacting with freetype
2017-03-19 17:19:59 +01:00
heinrich5991
d91cca728d
Partially revert warning-fixing, it caused warnings on other systems
2017-03-12 16:47:37 +01:00
Ryozuki
1614e59e8f
Fix some warnings
2017-03-12 12:12:39 +01:00
def
6e8ada1ac8
Fix whitespaces a bit
2015-07-09 02:12:35 +02:00
def
bd62b5da79
Clean up a few compile warnings
2014-12-31 13:04:31 +01:00
def
d44e6088bb
console output cleanup
2014-09-09 22:23:56 +02:00
oy
86cd0cefd7
fixed wrapping problems when rendering console input
2013-02-24 17:34:51 +01:00
oy
7328098f8d
Merge pull request #912 from matricks/threadedflip
...
Threadedflip
2012-01-03 15:40:30 -08:00
Magnus Auvinen
6e57620c2c
added flags for mipmap generation on textures. fixes missing texts
2011-12-31 11:18:55 +01:00
Magnus Auvinen
8a91bfa1dd
fixed texture upload support. removed raw gl calls from the text render
2011-12-31 09:40:11 +01:00
oy
af9775f400
fixed texture increasing in the text renderer
2011-12-29 13:03:06 +01:00
oy
5fbf6d0bfd
fixed compiler warnings. Closes #679
2011-05-05 01:43:27 +02:00
oy
06115dd49d
added "Whitespace and line Endings cleanup" by GreYFoX
2011-04-13 20:37:12 +02:00
oy
09dc08859d
added a function to set the text outline colour and increased readability of nameplates on bright backgrounds. Closes #205
2011-03-13 12:55:00 +01:00
oy
6a6e7b702e
removed double utf8 decoding in text rendering
2011-02-18 11:08:38 +01:00
GreYFoXGTi
1b2703aaba
Refactoring & fixed WEAPONSPEC_GUN in content.py
2011-02-12 21:18:41 +01:00
oy
be68a4f516
added fix by CarmineZ about missing tool tips in the editor
2011-01-29 18:48:55 +01:00
oy
91f642fac2
fixed cut off broadcast. Closes #398
2011-01-09 23:25:07 +01:00
oy
aad2438882
fixed outlines for larger font sizes
2011-01-05 12:12:23 +01:00
oy
1928a757c6
added fix for rendering big fonts on large resolutions by RushPL
2011-01-04 12:30:40 +01:00
Sworddragon
fc9211c777
Updated copyrights
2010-11-20 21:26:06 +01:00
oy
3d3572f845
fixed some compiler warnings
2010-11-17 18:36:19 +01:00
oy
f1bc96ad09
fixed crashes with the font. closes #178
2010-10-29 23:49:33 +02:00
oy
411db8b885
fixed that chat message gets out of the window. Closes #102
2010-10-11 02:29:30 +02:00
oy
3a98f7a048
added mod system. Closes #34
2010-10-06 23:07:35 +02:00
oy
0f72fd19ef
fixed text rendering problem. Closes #12
2010-08-18 00:21:38 +02:00
oy
abc84ac0b0
added fixes for compiler errors and warnings by sworddragon
2010-08-16 02:21:18 +02:00