Comments (2)
Hi, @grocco,
Thanks for following up GCanvas. This is our roadmap for next 6 months:
- Improve text rendering performance, especially for Android - Will release at early of May 2018
- Draw other GCanvas as render target for 2D graphics - Will release at late of May 2018
- Build a high-performance independent runtime container - Will release in July 2018
So GCanvas team can add measureText
feature into text rendering version.
But if you are anxious, I recommend that you implement it by yourself please, and we welcome you to contribute code.
Here's the idea about how to implement measure text:
- Modify
js/src/context-2d/RenderingContext.js
, addmeasureText
function. Please notice that you should convert the function into a string command, and make sure the single command key is not used. - Modify 'execute2dCommands' in
GCanvas.cpp
which is under folder 'core/src', then do your implementations. Please notice that implementation of text rendering for Android and iOS is not the same. Android uses Freetype, while iOS calls System APIs.
If you have any questions, please feel free to ask. Thanks.
from gcanvas.
Thank you very much for sharing your roadmap and for the implementation suggestions!
I will let you know if I will work on it. I will first have to make sure I can afford using the library in my app at this stage given the current performance (I will open another issue about it as it is unrelated)
from gcanvas.
Related Issues (20)
- 您好我想询问下,我使用的是weex 0.28版本使用GCanvas时,在装完插件后启动报错是什么原因 HOT 1
- 更新master分支后,gcanvas无法显示 HOT 3
- 怎么编译啊,没得说明文档么 HOT 2
- 有没有demo example啊 HOT 1
- react-native link react-native-gcanvas Android error HOT 2
- libEGL: call to OpenGL ES API with no current context HOT 1
- 关于绘制时的context 疑问请教
- Android won't compile HOT 3
- shadow not work
- GCanvas 如何同Android WebView搭配开发呢? HOT 3
- Issues using with ReactNative HOT 1
- 请问如何集成在EEUI中呢? HOT 2
- GCanvas Node,gcanvas build 成功后,运行demo,显示以下错误 HOT 1
- Node 使用源码编译运行example时,显示 Error: eglChooseConfig(): config not found HOT 2
- how to get base64 image data from canva HOT 1
- tag 1.2.0是稳定版本么
- 忽略
- rn的example报错,跑不起来 HOT 1
- opengl ios12之后已经被废弃了, GCanvas 有计划更新到推荐的图形库Metal吗
- iOS 用1.1.0版本 绘制折线图有的点连接不上
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcanvas.