Commit Graph

32 Commits

Author SHA1 Message Date
Benau
a60b2d3761 Remove freetype in server only build 2018-07-07 02:06:49 +08:00
hiker
203c511fab Fixed compiler warnings. 2018-04-19 18:08:48 +10:00
hiker
98555a8f35 Merge remote-tracking branch 'origin/master' into game_protocol 2018-04-19 10:57:37 +10:00
Deve
4abdb14a4c Allow to use bigger fonts on desktop version for easier debugging 2018-04-11 21:39:34 +02:00
hiker
b1013f6030 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-03-31 00:38:57 +11:00
Deve
26419e5ee0 Better gui scaling on android 2018-03-16 23:00:58 +01:00
Benau
9d93e0112c Try to fix OSX no-graphics STK 2018-03-01 10:10:08 +08:00
Benau
42a3eb1880 Uniform vertex color for fonts in all pipelines 2017-10-20 18:21:55 +08:00
Benau
c7eeb8338d Try to fix for gles 2017-02-24 19:03:14 +08:00
Benau
4af255431c Fix opengl warning about glTexSubImage2D buffer of null pointer
For example, whitespace in freetype glyph has no bits buffer
2017-02-12 10:23:18 +08:00
Benau
a55cc47845 Fix leaking font texture when changing language 2017-01-10 12:52:31 +08:00
Benau
71c14ff0b3 Convert code to a more readable format 2017-01-08 23:50:47 +08:00
Benau
4ba1b2408c Minor optimization 2017-01-08 14:38:58 +08:00
Benau
f609114594 Zero the array to prevent black border in glyph
Also use the correct internal format
2017-01-08 00:05:00 +08:00
Benau
314c32865b Allow using single color channel for font texture 2017-01-07 16:36:25 +08:00
Benau
f78d749a0c Fix no graphics run 2017-01-07 15:43:25 +08:00
Benau
6deb0e0f8a Avoid using createImageFromData with preload data for texture
Todo: allow using single channel for font texture, saving 75% size
2017-01-07 14:45:47 +08:00
Benau
ba8846522e Implement cleaning for new texture
Also warn if there is possible texture leaking when exit STK
2017-01-06 23:45:25 +08:00
Benau
66f3a2e32b Make dump glyph page possible for new texture format
Also implement read-only lock, please use reload() for writing
2017-01-06 19:58:51 +08:00
Benau
2af126357d Port font to use new texture format 2017-01-06 18:20:19 +08:00
hiker
73182863df Fixed linking problems - will probably not run ;) 2016-11-14 09:59:08 +11:00
Benau
3e70fa27d9 Add doxygen for Font modules
Plus some coding-style cleanup
2016-10-22 00:01:48 +08:00
Benau
c71b24f98f Correct fixes to #2599 2016-08-12 09:41:08 +08:00
Benau
aa15b0070e Determine the texture size of bold face smartly 2016-08-12 08:31:52 +08:00
Benau
6a4fe397d4 Thanks devnexen for spotting this out 2016-07-24 15:56:02 +08:00
Benau
236c9c44a8 Minor improvements for font 2016-07-24 09:56:46 +08:00
Benau
744a4705b6 Auto embolden glyph of bold face, without fallback font 2016-07-21 12:26:19 +08:00
Benau
03b92efba5 Fix wrong text alignment 2016-07-19 15:21:14 +08:00
Benau
b2ee606e7b Try to use float for dest_ret 2016-07-19 12:25:16 +08:00
Benau
89f06ed8d3 Fix crash with fixed pipeline 2016-07-18 23:56:14 +08:00
Benau
6a319cbed2 Clean up old font code 2016-07-18 23:00:40 +08:00
Benau
05419cd555 Initial work on new font rendering engine 2016-07-18 16:03:11 +08:00