[x3d-public] request: FontLibrary example
John Carlson
yottzumm at gmail.com
Sun Apr 12 23:32:43 PDT 2026
Here's a partial sample:
<FontLibrary family='myBitter' url='"
https://fonts.gstatic.com/s/bitter/v7/HEpP8tJXlWaYHimsnXgfCOvvDin1pK8aKteLpeZ5c0A.woff2
"'/>
<WorldInfo title='AnchorMenu.x3d'/>
<Viewpoint description='Default Viewpoint' position='0 0 3.5'/>
<Group>
<Anchor DEF='___AnchorMenu' description='../AnchorMenu.x3d'
parameter='"target=_self"' url='"../AnchorMenu.x3d" "
https://www.web3d.org/x3d/content/examples//../AnchorMenu.x3d"'>
<TouchSensor description='../AnchorMenu.x3d'/>
<Transform translation='1 0 0'>
<Transform translation='-2 1 0.5'>
<Transform translation='0.05 -0.011 0'>
<Shape>
<Appearance>
<Material diffuseColor='0 0 0'/>
</Appearance>
<Text string='".."'>
<FontStyle family='"MyBitter"' justify='"MIDDLE"
"MIDDLE"' size='0.05' spacing='0.6'/>
</Text>
</Shape>
</Transform>
<Transform translation='0 0.01 -0.01'>
<Shape>
<Appearance>
<Material diffuseColor='1 1 1'/>
</Appearance>
<Rectangle2D size='1 0.1'/>
</Shape>
</Transform>
</Transform>
</Transform>
Castle says:
42 warnings:
X3D: Unknown X3D node type "FontLibrary"
VRML/X3D: Node "FontLibrary" is not allowed at the top level of the X3D file
VRML/X3D: Font family "MyBitter" not supported
[snip]
Scene URL: "C:/Users/jcarl/www.web3d.org/x3d/content/examples/AnchorMenu.x3d
".
Use "File->View Warnings" menu to view these warnings again.
Maybe we need Castle Model Viewer to support FontLibrary.
On Mon, Apr 13, 2026 at 12:02 AM John Carlson <yottzumm at gmail.com> wrote:
> I’m going to try to create one for AnchorMenu.x3d, Don, to achieve a
> common looking font across x3d browsers.
>
> Maybe you can extract Python or XML from my example. It will be under
> Apache License.
>
> Checking V4.1 now. Then dinner.
>
> John
>
> On Mon, Mar 16, 2026 at 10:52 AM Don Brutzman via x3d-public <
> x3d-public at web3d.org> wrote:
>
>> Wondering if there is a simple FontLibrary example out there?
>>
>> all the best, Don
>> --
>> X3D Graphics, Maritime Robotics, Distributed Simulation
>> Relative Motion Consulting https://RelativeMotion.info
>> _______________________________________________
>> x3d-public mailing list
>> x3d-public at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20260413/ac64896b/attachment.html>
More information about the x3d-public
mailing list