Commit Graph

75 Commits

Author SHA1 Message Date
knox 904ea1056a fix label display error for fireball/issues/7233 2018-05-09 15:39:12 +08:00
Jare Guo 35b253c852 Merge branch 'v1.9'
# Conflicts:
#	CCBoot.js
#	cocos2d/audio/CCAudio.js
#	cocos2d/core/sprites/CCScale9Sprite.js
2018-05-08 15:28:58 +08:00
Knox e3735ce0b8 optimization label memory on qqplay and wechatgame (#2643) 2018-05-08 11:14:16 +08:00
Jare Guo 6c809263e6 Merge 1.8 2018-02-24 14:58:57 +08:00
knoxHuang cbafbf8a37 fix label display error for fireball/issues/6894 2018-02-12 11:25:56 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
pandamicro 51d67d80bb Update Texture2D API usages 2017-09-14 16:19:37 +08:00
2youyouo2 68c8f9c4ac separate culling and transform step 2017-08-31 15:35:03 +08:00
zilongshanren 462714b70d remove modular engine code 2017-04-24 13:44:10 +08:00
pandamicro 2323c742f1 Remove dom image immediately after texture init 2017-04-11 14:29:13 +08:00
zilongshanren df872b66d3 fix maximize call stack error 2017-03-09 11:01:51 +08:00
zilongshanren a3e1c1d071 finish label gradient effect 2017-02-17 20:06:45 +08:00
pandamicro a9aaaec6ab Improve RenderCmd construction performance 2017-01-22 17:34:22 +08:00
zilongshanren 069e5432a0 add _notifyRegionStatus call 2017-01-16 10:04:26 +08:00
zilongshanren 435b895c4e fix label opacity performance issue 2017-01-13 11:44:09 +08:00
Nan Wang 4dea8e7a8a move all error logs to DebugInfos.js and only show error id in release build 2016-12-15 17:07:01 +08:00
zilongshanren 23fbed9cc9 replace sglabel fragment text 2016-09-22 10:37:18 +08:00
zilongshanren cf25027c87 sync rich text italics implementation with native 2016-09-12 14:19:34 +08:00
zilongshanren d15b82f476 fix label shrink effect 2016-09-06 10:41:03 +08:00
zilongshanren f893152aa2 fix shrink bug 2016-08-31 17:58:16 +08:00
zilongshanren eb454e5ce0 add richtext bold/italics/underline 2016-08-30 11:25:24 +08:00
zilongshanren 66fa31d3e1 add bold/italic/underline support 2016-08-30 11:06:32 +08:00
zilongshanren a15c2cf750 add bold and italic support 2016-08-29 16:47:23 +08:00
zilongshanren 5e5b143308 fix edge cases when using outline 2016-08-16 15:24:19 +08:00
Huabing.Xu ccf41f1fd1 fix label rendering bug 2016-08-16 10:43:09 +08:00
Huabing.Xu 6a1322b572 fix dirty region not updated correctly for label 2016-08-01 16:46:15 +08:00
Huabing.Xu 06b612be01 refine rendering of canvas for scaleX and scaleY 2016-07-21 11:44:38 +08:00
pandamicro 321e9d13ca Add culling for Sprite & Label Canvas render command, fix issues 2016-07-15 15:50:55 +08:00
pandamicro 4ef771c043 Fix remained issues in new renderer 2016-07-13 14:04:25 +08:00
pandamicro 07e592dced Upgrade Scale9Sprite renderer & set index buffer dynamically 2016-07-12 16:33:52 +08:00
pandamicro 7c170b69d5 Merge pull request #866 from dabingnn/optimise_canvas_rendering
Optimise canvas rendering
2016-07-08 11:44:39 +08:00
zilongshanren 09c80402ba fix some bugs of shrink label
it also improve the perfomance issue of shrinked label

calculate font size divide by 2

add font height cache

keep the label lineheight the same as before
2016-07-06 17:39:21 +08:00
Huabing.Xu 26e8d7fcdb roll back scaleX scaleY 2016-07-05 15:41:08 +08:00
zilongshanren 4df512cc99 minor improve line height of shrinked text 2016-07-03 10:12:37 +08:00
zilongshanren 570b41cb69 fix Chinese label shrink effect 2016-07-02 14:23:29 +08:00
zilongshanren 5ad4e6fca9 fix web system font shrink wrap effect
fix label font size

add measure text height

make a skeleton of label ttf shrink algorithm

add debounce method for node string

finish no \n wrap

add debounced font size to label

finish web ttf shrink
2016-07-01 18:13:26 +08:00
Huabing.Xu ded71d1520 dirty region works on canvas 2016-07-01 16:10:24 +08:00
Huabing.Xu 581294d09b move scaleX and scaleY to transform 2016-06-30 16:11:29 +08:00
zilongshanren 3b9d875014 fix bmfont and ttf shrink in editor
fix bmfont vertical clamp precision

fix a bunch of label issues

fix bmfont inital font metrics
2016-06-17 16:32:02 +08:00
Huabing.Xu ab26de3c4d fix label bugs 1. outline sharp edge 2. margin for outline 2016-06-02 09:57:20 +08:00
Huabing.Xu 93acfa93a5 use round for line join to avoid sharp edge for outline effect 2016-06-01 14:39:33 +08:00
Wang Nan c51e89f49e Merge pull request #684 from zilongshanren/fix-label-webgl-size-issue
fix label not updating content size
2016-05-18 18:24:52 +08:00
zilongshanren 1f4770d32a simplify label content update size logic 2016-05-17 18:28:41 +08:00
Huabing.Xu e2c12e672c multiply width by 2 2016-05-17 18:13:44 +08:00
Huabing.Xu 714a9816e9 adjust outline effect 2016-05-17 17:53:27 +08:00
Huabing.Xu a9d5ea5053 add width for stroke 2016-05-17 12:13:30 +08:00
Huabing.Xu 101e710683 implement outline effect 2016-05-13 10:32:20 +08:00
Huabing.Xu c8a56b13f7 add outline effect 2016-05-12 18:38:34 +08:00
Huabing.Xu af55d43f89 add outline feature 2016-05-12 15:10:00 +08:00
Jare Guo f2fc319677 Merge pull request #582 from zilongshanren/fix-label-cascaded-opacity
fix cascaded opacity issue of label
2016-04-18 14:53:42 +08:00