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 diff --git a/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm b/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm index dd11711d60..618290c0a7 100644 --- a/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm +++ b/native/cocos/platform/apple/CCCanvasRenderingContext2D-apple.mm @@ -363,8 +363,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 @@ -374,7 +372,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); 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);