[英]Adding bootstrap glyphicons in the text entity of a-frame
Like normal webpage, i wanted to include a glyphicon inside a text entity. 像普通网页一样,我想在文字实体中加入glyphicon。 For example, in below scene, i have included a text with value "Stop watch" on a plane.
例如,在下面的场景中,我在飞机上添加了一个值为“秒表”的文本。
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded>
<a-plane position="0 0 0" rotation="-90 0 0" text="value:Stop watch;align:center;width:5;color:black;"></a-plane>
</a-scene>
</body>
Now, like normal webpage, i wanted to replace this text value with a glyph from bootstrap. 现在,就像普通网页一样,我想用引导程序中的字形替换此文本值。
<span class="glyphicon glyphicon-time"></span>
Is it possible? 可能吗?
a-text
renders the sets of text from preset font libraries. a-text
从预设字体库中呈现a-text
集。 I'd suggest using the glyphicon as an image. 我建议使用glyphicon作为图像。
<a-plane material="src: myimage.png"></a-plane>
You could use the glyphicons, if you had a font in the necessary format , which would have the glyphicons. 如果您有必要格式的字体,则可以使用字形图标,该字体将带有字形图标。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.