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