google-ar / three.ar.js

A helper three.js library for building AR web experiences that run in WebARonARKit and WebARonARCore
https://developers.google.com/ar/develop/web/getting-started
Apache License 2.0
2.91k stars 365 forks source link

ARDebug text needs its own font #74

Closed jsantell closed 6 years ago

jsantell commented 6 years ago

Right now it just inherits font stylings, and should attempt to use a nice font provided by the OS (Helvetica etc) and falling back to Arial/sans-serif, so it's not indirectly styled, resulting in some unexpected layout.

jsantell commented 6 years ago

Must've been confused by the Roboto usage, but should be fine and fallback to other sans-serif fonts if not supported: "Roboto, Ubuntu, Arial, sans-serif"

Although this is rather Linux specific, we can also add Helvetica, etc. in the future