troika icon indicating copy to clipboard operation
troika copied to clipboard

Feature request: Text Extrusion/Height

Open oveddan opened this issue 5 years ago • 2 comments

Similar to how Three.js textGeometry supports extrusion and specifying a height, it would be great if this lib supported that as well.

oveddan avatar Apr 27 '21 14:04 oveddan

That would be nice! Unfortunately I don't feel that's in scope for this particular tool, which is very much designed around SDF rendering. Unless there's a brilliant technique for using 2D SDFs to render extruded shapes, without constructing vertex geometries (I'd love to know about this!!!), we'd be essentially duplicating Three's TextGeometry anyway, so why not just use that.

There would also be lots of questions around how certain features (e.g. outline, stroke, curveRadius) would map onto glyphs that have depth. And, of course, very different performance considerations.

I can see the possibility of another tool using our font parsing and layout logic, which should already be possible. I'd definitely support such an effort.

lojjic avatar Apr 27 '21 16:04 lojjic

Is there any way to implement this today? I want to take 2D Text from troika and turn it into 3D Text with depth. Do I have to utilize the extrudeGeometry /> tag?

https://stackoverflow.com/questions/73321008/can-i-create-a-3d-text-with-troika-three-text

georgekrax avatar Aug 11 '22 13:08 georgekrax