0

I did quite a bit of searching on this topic, including reviewing in detail the two topics StackExchange immediately suggested for me (How to change text style in qgis2threejs?, Changing font in QGIS2threejs) but have not found an answer. The second of those links states "In QGIS2threejs, I want to change the fonts in 3D presentation. I learned that I can do it by change it in the css file" but the screen shots s/he provided for editting QGIS2threejs.css don't match the current version of that file (the post is over 4 years old). I tried all sorts of edits to the CSS file but with no luck.

The other post suggests editing the HTML file that QGIS2threejs generates once you have your model set up. For example, I added to the HTML file

<style>
.label {
 font-size: xx-small;
 }
</style>

But that didn't help anything.

The problem I am trying to solve is making these labels smaller:

too big font

I have selected "small" in the Label dialogue box setting up the model.

dialogue box Labels

Any Suggestions?

asked Nov 15, 2023 at 16:43

1 Answer 1

0

You need to change the font size in Scene.js.

for exampel:

 "layers": [
 {
 "type": "layer",
 "id": 0,
 "properties": {
 "name": "Mat- & Berakningspunkter",
 "clickable": true,
 "visible": true,
 "type": "point",
 "objType": "Sphere",
 "label": {
 "relative": true,
 "font": "sans-serif",
 **"size": -5,**
 "color": "rgb(0,0,0)"
 }
 },
MrXsquared
36.2k22 gold badges76 silver badges127 bronze badges
answered Aug 14, 2024 at 9:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.