Drawing text
See original GitHub issue@fadden I’d like to display a logo, timestamp and fps on the video.
I’ve been able to successfully draw a Bitmap using GLUtils.texImage2D()
on the video, drawing two rects (One Sprite2D
for the logo and one FullFrameRect
for the video) on one WindowSurface
. How should I draw text? Reading on the Internet I see it isn’t as straight forward as I thought it would be.
Edit : An easy option seems to lock the WindowSurface'
s canvas and use the Canvas
API to draw, like here. Do you see any drawback to this?
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (1 by maintainers)
Top Results From Across the Web
Text Art (copy and paste ASCII pictures and font) - FSymbols
Draw your own text art. Text art, also called ASCII art or keyboard art is a copy-pasteable digital age art form. It's about...
Read more >Drawing text - Canvas API - MDN Web Docs
Drawing text. The canvas rendering context provides two methods to render text: ... The current text style being used when drawing text.
Read more >Pictures created from text and symbols ୭̥⋆*。 - Messletters
Text art, also called ASCII art, are images made from text. You can use them in your Facebook posts or on your blog,...
Read more >Drawing Text and Lettering - how to articles from wikiHow
Learn everything you want about Drawing Text and Lettering with the wikiHow Drawing Text and Lettering Category. Learn about topics such as How...
Read more >Drawing text · microsoft/DirectXTK12 Wiki - GitHub
The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++ - Drawing text ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
mSpriteLogoRect.transform(new Sprite3d.Transformer() .rotateAroundX(180) .translate(0, 0, 0) .scale(1.0f, 1.0f, 1.0f) .build());
.rotateAroundX(180) //this line made the trick
I did this a long time ago, so I don’t quite remember. But, it depends on how you’re rendering the text. When it’s placed in a sprite2d, you can perform any affine function and rotate/move/scale it. Also, if you want to make it easy, you can also rotate the bitmap.