QuantumBadger / Speedy2D

Rust library for hardware accelerated drawing of 2D shapes, images, and text, with an easy to use API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text outline

mazsibazsi opened this issue · comments

Hello!

I am looking to add outlines to my text.

I have a bunch of kfn (karaoke) files, made by volunteers, and I am building a player for those files. Hence fonts, text colors and text outline colors are already given, and I would like to respect those choices as much as possible.

Is there any way I could outline individual characters, so that it remains readable, unlike picrel?
kép

You can draw the same text in outline color 1-2 pixels up, down, right and left, and then draw the actual text over it.

You can draw the same text in outline color 1-2 pixels up, down, right and left, and then draw the actual text over it.

That is actually not a bad idea. Thanks!

That's how we were doing it in the era of J2ME phones ;)