https://kotlinlang.org logo
#compose
Title
# compose
g

gvoltr

08/02/2022, 1:42 PM
Hello guys! Can someone please help me with a few hints for a composable like this - I need an outlined text with transparency. I did some investigation and the closest thing i found is custom drawing on the canvas, and it looks kinda overcomplicated for the task. Maybe someone did something similar?
c

Casey Brooks

08/02/2022, 2:09 PM
I think your best bet would just be to find a font that’s outlined like that. Here’s a few examples on Google Fonts https://fonts.google.com/?query=outline
g

gvoltr

08/02/2022, 2:22 PM
unfortunately, I have to use exactly Helvetica Neue and I couldn't find an outlined version of the font
c

Casey Brooks

08/02/2022, 2:25 PM
There’s a bold version of that font from a quick Google search, https://www.linotype.com/1264148/neue-helvetica-75-bold-outline-product.html. You might just ask your designer for the font files they used to create that image, they might already have the outlined font so you wouldn’t have to buy it again
g

gvoltr

08/02/2022, 2:32 PM
you are right, thank you! Then it's a valid option if there is no other way to do this from the code.
m

Michael Paus

08/02/2022, 5:12 PM
I don’t know what you want to do with it but would a conversion to SVG be an option for you? E.g., https://danmarshall.github.io/google-font-to-svg-path/
g

gvoltr

08/02/2022, 5:22 PM
Text must be dynamic, so ideally it has to be just a Text composable of some sort. But thanks anyway!
3 Views