Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing the HTML code in a canvas: impossible to color the rendered text #206

Open
Jars-of-jam-Scheduler opened this issue Mar 17, 2019 · 0 comments

Comments

@Jars-of-jam-Scheduler
Copy link

Jars-of-jam-Scheduler commented Mar 17, 2019

Hello!

In order to draw the text in an Android canvas, I call editor.getHtml() and give it to Html.fromHtml(...). The latter is stored in a StaticLayout, and there are some other calls to give it to the Bitmap object.

The problem is that you don't use font color="..." (maybe due to the fact font is deprecated - (#129).
So the text in the image doesn't appear colored (Html.fromHtml doesn't interpret your style="color: ...;" - although it interprets correctly font color="...").

Please, could you make us able to allow RichEditor to make use of font color="..." if we think it's necessary (for example: to draw it in an image)?

Btw, could you make something like this for the background-color CSS property?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant