halx99
0076283252
Huge changes for all string_view
2021-12-26 23:26:34 +08:00
halx99
2ba77a42fb
Committing clang-format changes
2021-12-25 02:04:45 +00:00
halx99
b459acbcf7
Remove all unnecessary nothrow
2021-12-08 00:11:53 +08:00
halx99
82b7b95ff8
Better use string_view, refer #543
2021-11-27 13:51:21 +08:00
halx99
44b78723dc
Use std::string_view instead const std::string&, refer #543
...
a. FontFreeType
b. ccUTF8
2021-11-27 11:08:08 +08:00
halx99
e3f2bde738
More safe to store customGlyphs
2021-11-26 17:53:24 +08:00
halx99
1df2fe9f85
Refine code
2021-11-17 14:07:47 +08:00
halx99
47ecd78b22
Improve TTF load, enable stream parsing at for non-android devices
2021-11-16 18:41:18 +08:00
halx99
14b70ce566
Better logic
2021-11-11 17:30:47 +08:00
halx99
e38d4052a8
Improve code style
2021-11-11 17:20:21 +08:00
halx99
4dd593ae4b
Skip whitespace for sdf text render
2021-11-11 16:24:18 +08:00
halx99
92ee08e0b4
Match utf32 char code parameter type
2021-11-11 16:15:23 +08:00
halx99
e378284825
Improve speed for loading outline glyph
2021-11-11 15:56:07 +08:00
halx99
c4aedff539
Better spread for freetype sdf
2021-09-26 13:03:40 +08:00
halx99
8b71cf25fe
Fixup
2021-09-20 14:49:00 +08:00
halx99
6ebd14f72a
Fixup
2021-09-20 12:24:54 +08:00
halx99
5b53f005a5
Replace SDF implementation with freetype
2021-09-20 12:08:37 +08:00
rh101
aecfb8be47
FT_StreamRec expects specific method signature with `unsigned long`
2021-09-02 15:55:57 +10:00
rh101
4d1ff40736
Usage of long and unsigned long changed to platform independent fixed-sized types where appropriate.
2021-09-02 15:39:28 +10:00
halx99
beb593a22a
Fix comment typo and do clang-format [skip ci]
2021-08-28 20:22:01 +08:00
halx99
56067f5acc
Fix crash problem when load a non-truetype .ttf file.
2021-08-28 18:24:17 +08:00
halx99
bafcac20c1
Add some comment for pr #384
2021-06-17 21:56:38 +08:00
RH
d052cc8a48
Use TTF scaled metrics to calculate line height ( #384 )
2021-06-17 21:15:50 +08:00
RH
d17e7b442a
FileStream::size() implemented ( #365 )
...
* Add FileStream::size()
Add ZipFile::zfsize()
* Use FileStream::size()
2021-05-31 15:08:44 +08:00
rh101
19995f863b
Get the raw pointer on creation of the FileStream to avoid any accidental usage of the unique_ptr.
2021-04-26 17:31:34 +10:00
rh101
ef6bedd069
Use unique_ptr for FileUtils::openFileStream
...
Fix OGG audio playback due to incorrect tell() method
Fix unzip close() override method not deleting FileStream pointer.
2021-04-26 14:21:56 +10:00
rh101
bcafad58ea
Ensure code uses FileStream::tell() to get size if required after using FileStream::seek(0, SET_END)
2021-04-26 10:28:33 +10:00
rh101
e1a9141a00
openFileStream now returns a nullptr if it fails
2021-04-24 09:22:27 +10:00
rh101
5b3b0989b4
Remove redundant std::move
2021-04-23 22:00:33 +10:00
rh101
8de1099614
Add support for virtual file system via custom FileStream and FileUtils implementations.
2021-04-22 03:15:49 +10:00
halx99
d4aa6900c3
By default, disable stream parsing
2020-08-27 11:40:44 +08:00
halx99
bf3a608c01
freetype stream parsing support, reduce memory use on FontCache
2020-08-27 11:35:55 +08:00
halx99
f88dfdc167
FreeType: Output missing char in .ttf at _DEBUG compiling mode
2020-08-12 14:24:06 +08:00
minggo
c9af873e2e
fix some warnings ( #20247 )
2019-10-25 16:40:30 +08:00
coulsonwang
c7020fbb5f
fix C4244 warning ( #20173 )
2019-10-09 17:50:32 +08:00
Peter Siegmund
bac694dc55
fix reorder warning ( #18819 )
2018-05-14 10:34:56 +08:00
leeda
18a6d8241d
update Copyright. might need manual fix later ( #18659 )
...
* Copyright use python script updated. might be fix by manual later
* Revert "Copyright use python script updated. might be fix by manual later"
This reverts commit 49e99418e4da1fd02afda448ddeb16210f5e8c71.
* re modify copyright, consider utf-8-sig encoding
* another situation, add Copyright before "Permission is hereby granted"
* Revert "another situation, add Copyright before "Permission is hereby granted""
This reverts commit ee82591d32353c7ce2e146fe51ef447433b47571.
* another situation, add Copyright before Permission is hereby granted
* change "Copyright (c) 2016-2016 Chukong Technologies Inc." to " Copyright (c) 2016 Chukong Technologies Inc."
* script modify copyright, consider is cocos copyright or not
* change "Copyright (c) 2017 Chukong Technologies Inc." to "Copyright (c) 2016 Chukong Technologies Inc."
* manual fix, not fix audio related
* change "2016-2016" to "2016"
2018-01-29 16:25:32 +08:00
will
966483be30
fix memory leak in FontFreeType::create ( #18503 )
2017-11-30 16:45:48 +08:00
minggo
4be6eb5325
correct usage of reference count of LabelAtlas ( #18117 )
2017-07-31 09:05:55 +08:00
CocosRobot
d07794052f
Update license to 2017 ( #17362 )
...
* Typo: CopyRight -> Copyright
* Copyright update: chukong-inc.com -> Chukong Technologies Inc.
* [js files] Copyright update: 2014 -> 2014-2017
* [cpp files] Copyright update: 2014 -> 2014-2017
* Copyright update: 2015 -> 2015-2017
* [js files] Copyright update: 2014 -> 2014-2017
* Copyright update: 2016 -> 2016-2017
* Copyright update: 2013 -> 2013-2017
* Copyright update: 201?-201? -> 201?-2017
* License year fixes.
* Liscene year fix in CCRay.cpp
* Updates license years in CCGLProgramState.h & CCGLProgramStateCache.h
2017-02-14 14:36:57 +08:00
newnon
f408cbfcca
fix rendering font with not null line gap ( #17175 )
...
* fix rendering font with not null line gap
* test for line gap fix
2017-02-13 13:58:32 +08:00
newnon
88c3fcde67
Full unicode support ( #17179 )
...
* Full unicode support
* test for emoji
2017-02-06 16:41:52 +08:00
newnon
e33cc3b257
fix when new is zero ( #17283 )
2017-02-06 15:17:18 +08:00
newnon
15e56c06a4
outline to float ( #17176 )
2017-01-13 14:31:12 +08:00
James Chen
627eba6aac
fixed #16652 : FontFreeType crashes in its destructor. ( #16684 )
2016-10-14 17:49:36 +08:00
minggo
84a102edf8
merge v3.13.1 back to v3
2016-09-15 10:08:28 +08:00
minggo
86de22a008
fix crash if FontAtlas pointer is the same ( #16555 )
2016-09-09 11:39:00 +08:00
Nakhyun Choi
a9898b9875
possible memory leak when font size is 0 ( #16424 )
2016-08-24 18:27:44 -07:00
James Chen
b135d512d2
Update copyright to 2016. ( #16311 )
2016-08-05 09:42:15 +08:00
Wenhai Lin
a93cbe8a32
Refine 'CCFontXXXX'
2016-03-24 23:05:22 +08:00