diff --git a/rips/test/DEFAULT_FONT.RIP b/rips/test/DEFAULT_FONT.RIP
new file mode 100644
index 0000000..d3b3aa9
--- /dev/null
+++ b/rips/test/DEFAULT_FONT.RIP
@@ -0,0 +1,3 @@
+!|1K|1B3M0C020QPE02080F0F080700000F0700003M
+!|1U1C3M00000000<>Default size<>d
+!|Y00000100|1U5K3M00000000<>Explicit size 1<>e|#|#|#
diff --git a/rips/test/DEFAULT_FONT.png b/rips/test/DEFAULT_FONT.png
new file mode 100644
index 0000000..57c1c23
Binary files /dev/null and b/rips/test/DEFAULT_FONT.png differ
diff --git a/ripterm.html b/ripterm.html
index 21a5452..01e5fd7 100644
--- a/ripterm.html
+++ b/ripterm.html
@@ -261,6 +261,7 @@
2011 (v0.1), 2018 (v0.2), 2021 (v0.3), 2026 (v0.4)
+
diff --git a/src/BGI.js b/src/BGI.js
index 0032bd1..869cf2f 100644
--- a/src/BGI.js
+++ b/src/BGI.js
@@ -177,7 +177,7 @@ class BGI {
writeMode: 0, // 0=COPY, 1=XOR, 2=OR, 3=AND, 4=NOT
font: { width: 0, height: 0 }, // ??
fontMag: { x: 1.0, y: 1.0 }, // font magnification
- text: { font: 0, direction: 0, charsize: 0, horiz: 0, vert: 0 },
+ text: { font: 0, direction: 0, charsize: 1, horiz: 0, vert: 0 },
};
}
@@ -2010,7 +2010,7 @@ class BGI {
return 0; // ???
}
- // returns object: { font: 0, direction: 0, charsize: 0, horiz: 0, vert: 0 }
+ // returns object: { font: 0, direction: 0, charsize: 1, horiz: 0, vert: 0 }
gettextsettings () {
// OLD struct textsettingstype *texttypeinfo
return JSON.parse(JSON.stringify(this.info.text)); // copy obj