Floating text position DX11

I made a patch in dx9 to simulate the floating position of text in relation of other element ( in this case text).

In dx9 Text(EX9) is possible to collect the information about the “size” of string and from this, place the second element on relative position.

is possible make this in DX11?
the patch posted use a trick, there’s a specific mode to make that?



_floating_TEXT.v4p (15.0 kB)

here a simple solution i’m trying

_floating_TEXT_DX11.v4p (29.7 kB)

you can use GlyphInfo (String) to get the same info for any string

In DX11 you can use CaretPosition and TextLayoutMetrics.