GithubHelp home page GithubHelp logo

Comments (2)

fREEDtICE avatar fREEDtICE commented on May 7, 2024

Hi, @grocco,
Thanks for following up GCanvas. This is our roadmap for next 6 months:

  1. Improve text rendering performance, especially for Android - Will release at early of May 2018
  2. Draw other GCanvas as render target for 2D graphics - Will release at late of May 2018
  3. 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:

  1. Modify js/src/context-2d/RenderingContext.js, add measureText function. Please notice that you should convert the function into a string command, and make sure the single command key is not used.
  2. Modify 'execute2dCommands' inGCanvas.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.

grocco avatar grocco commented on May 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.