Greetings all.
I suspect I’m posting this in the wrong category. I’m happy to have it moved to wherever makes the most sense. I’m asking here because while this is technically about publishing a work it’s more about specifics around the interpreter. Let me provide the context. I think the context is necessary for my question to make sense.
I have a web page that will be providing some narrative around Inform 7 with embedded examples. I’m going to have the following markup in place:
<pre class="inform7-source">
<span class="i7-string">"Exploring Inform 7"</span> by Jeff Nyman
The Lobby is south of the Office.
A table is here. It is fixed in place.
A small bowl is on it.
A piece of candy is in it.
A professor is here.
The professor wears a jacket.
</pre>
Right below that will be this:
<div class="quixe-embed quixe-div" id="quixe-div">
<button class="quixe-start" data-story-name="exploring" onclick="expandDiv(this)">Explore</button>
</div>
At the bottom of the page I have this:
<script>
document.addEventListener("DOMContentLoaded", function() {
var quixeStartElements = document.querySelectorAll(".quixe-start");
quixeStartElements.forEach(function(element) {
element.addEventListener("click", function() {
var storyName = element.getAttribute("data-story-name");
console.log(storyName);
var parentElement = element.parentElement;
var iframe = document.createElement("iframe");
iframe.setAttribute("alt", "Inform Interpreter");
iframe.setAttribute("src", `quixe/play-remote.html?story=/story/${storyName}.gblorb`);
iframe.className = "quixe-container";
parentElement.innerHTML = "";
parentElement.appendChild(iframe);
});
});
});
function expandDiv(button) {
var quixeDiv = button.parentElement;
quixeDiv.style.height = "30em";
}
This all works great. If I have my gblorb located correctly, a Quixe (or GlkOte) interface shows up in the web page and the story file plays in it.
What I’m not sure how to do is handle font sizing. Specifically, I just want to increase the overall font size of the interface a bit.
Do I just do that in the glkote.css
file? I do notice that if I change the font-size property in the .BufferWindow
class that seems to work on everything except the title of the game for some reason. But otherwise seems okay. Although the prompt doesn’t increase in size so it’s off-centered and still shows quite small.
I know there’s talk about style hints and things like that but I’m trying to figure out if that’s the right way to handle this. The main thing I’m trying to do is just globally increase the size of the font for the displayed Quixe/GlkOte interface that shows up for the user in my above context.
Hopefully this made sense and I’m happy to clarify more if it doesn’t.