Replies: 1 comment 1 reply
-
Hey, I must have missed this post originally. I agree that the But I quite like the idea of a decorator too. I am pretty sure we expose enough things. I suspect the simplest approach would be to interface directly with the font engine interface. That should be fairly straightforward for basic text rendering. It could perhaps be useful to interface with |
Beta Was this translation helpful? Give feedback.
-
Wanted to ask about this before I opened any formal request about this. I'm in the process of fixing up some of the built-in controls to look nicer - this includes the scrollbars and
<input type="range">
sliders. I use Material Symbols as a quick way to use a font to embed symbols in various places without needing to bake custom images out (and this allows me to do icons without needing SVG support & keeps them scalable).One of the nicest CSS props for this sort of this is
content
: https://developer.mozilla.org/en-US/docs/Web/CSS/contentIn the context of RmlUi, what I'm looking to do is something akin to this:
I know content isn't currently supported, but without having it being supported, is there currently something I could (ab)use in RmlUi that would give me similar behavior? My first thought was a decorator, ie something like:
I don't know if there's enough stuff exposed that would allow me to efficiently do this, though, and it would probably make it harder to do things like setting font-effects that might be required depending on the styling we're aiming for. The nice thing about
content
is that it just acts like a text node, so all of the other properties "just work":tm:.Beta Was this translation helpful? Give feedback.
All reactions