Prelude: this is probably just a bungle on my part, but I am failing to import google fonts in my bisquixe project.
Here’s a demo project
lab is a room.
release along with a "bisquixe" interpreter.
include glulx entry points by emily short.
include simple multimedia effects for v10 by mathbrush.
first when play begins:
import-google-fonts "family=Open+Sans&family=Roboto+Mono";
css-set-fast ".BufferWindow; font-family; Open Sans, monospace";
css-set-fast ".GridWindow; font-family; Roboto Mono, sans-serif";
I’ve set the fallback fonts to their opposite, i.e. the bufferwindow fallback is monospace so that it’s easy to tell that the sans-serif font specified is not displaying.
Right - I looked it up, and it’s “technically valid, but not recommended”, so that’s probably not the problem and I wouldn’t worry about it after all. font-family - CSS: Cascading Style Sheets | MDN
(As you identified, the double family= is probably the problem.)
It’s because it was designed for use with one font at a time so prepends the ‘family=’. Adding another family with the ‘&family=’ is basically a kind of CSS injection. I would have added a better way of adding multiple families, but that would require me understanding inform 6 arrays and I don’t think I’m ready for that.