From b8a774f01817c5d8c5e8e8cdd2b08671713bd1e3 Mon Sep 17 00:00:00 2001 From: Knox Date: Mon, 27 May 2019 15:31:01 +0800 Subject: [PATCH 1/3] fix outline display error (#1748) --- .../cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm b/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm index af015f245e..4b57dcadf8 100644 --- a/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm +++ b/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm @@ -369,8 +369,6 @@ enum class CanvasTextBaseline { [_tokenAttributesDict removeObjectForKey:NSForegroundColorAttributeName]; [_tokenAttributesDict setObject:paragraphStyle forKey:NSParagraphStyleAttributeName]; - [_tokenAttributesDict setObject:[NSNumber numberWithFloat: _lineWidth * 2] - forKey:NSStrokeWidthAttributeName]; [_tokenAttributesDict setObject:[NSColor colorWithRed:_strokeStyle.r green:_strokeStyle.g blue:_strokeStyle.b @@ -380,7 +378,8 @@ enum class CanvasTextBaseline { // text color CGContextSetRGBFillColor(_context, _fillStyle.r, _fillStyle.g, _fillStyle.b, _fillStyle.a); - + CGContextSetLineWidth(_context, _lineWidth); + CGContextSetLineJoin(_context, kCGLineJoinRound); CGContextSetShouldSubpixelQuantizeFonts(_context, false); CGContextBeginTransparencyLayerWithRect(_context, CGRectMake(0, 0, _width, _height), nullptr); From b17b6b38a36325d9b9ce6f82f2cd05c8ef7b1383 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Mon, 27 May 2019 19:53:34 +0800 Subject: [PATCH 2/3] update readme --- native/README.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/native/README.md b/native/README.md index 7cf50a19c9..ad711c7598 100644 --- a/native/README.md +++ b/native/README.md @@ -3,7 +3,7 @@ Cocos2d-x, compact version Build Status -It is based on [cocos2d-x](https://github.com/cocos2d/cocos2d-x)[version 3.9], but remove 3D and other features. It works on iOS,OS X, Android and Windows. +It is based on [cocos2d-x](https://github.com/cocos2d/cocos2d-x)[version 3.9], but remove 3D and other features. It works on iOS, Android, macOS and Windows. ------------------------------------------------ @@ -43,19 +43,15 @@ Git user attention 1. Clone the repo from GitHub. $ git clone https://github.com/cocos-creator/cocos2d-x-lite.git - -2. After cloning the repo, please execute `download-deps.py` to download and install dependencies. - $ cd cocos2d-x-lite - $ python download-deps.py - -3. After running `download-deps.py`. - - $ git submodule update --init - -4. Build simulator - $ npm install + +2. After cloning the repo, please execute `gulp init` to download and install dependencies. + + $ gulp init + +3. Build simulator + $ gulp gen-simulator $ gulp update-simulator-config From c61370ac5f476b50847121dc8c50666e82533335 Mon Sep 17 00:00:00 2001 From: Jare Guo Date: Mon, 27 May 2019 21:11:02 +0800 Subject: [PATCH 3/3] gulp: force bypass npm proxy on windows --- native/gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/gulpfile.js b/native/gulpfile.js index d39bc165fa..83b120da7d 100644 --- a/native/gulpfile.js +++ b/native/gulpfile.js @@ -63,7 +63,8 @@ function downloadSimulatorDLL(callback) { Download('http://192.168.52.109/TestBuilds/Fireball/simulator/dlls/dll.zip', destPath, { mode: '755', extract: true, - strip: 0 + strip: 0, + agent: null, }).then(function(res) { callback(); }).catch(callback);