aboutsummaryrefslogtreecommitdiff
path: root/externals/open_source_archives/include/FontExtendedChineseSimplified.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-11 04:15:36 -0400
committerLioncash <mathew1800@gmail.com>2018-09-11 04:25:33 -0400
commit46ba1bc40f110a52292290634eefd0c030677eea (patch)
tree082e212263ed4b2409b2fe62faa4cd3b6a051e8d /externals/open_source_archives/include/FontExtendedChineseSimplified.h
parent3bac3051fc03846f5461628ba6a1b1f19851657c (diff)
externals: Place font data within cpp files
This places the font data within cpp files, which mitigates the possibility of the font data being duplicated within the binary if it's referred to in more than one translation unit in the future. It also stores the data within a std::array, which is more flexible when it comes to operating with the standard library. Furthermore, it makes the data arrays const. This is what we want, as it allows the compiler to store the data within the read-only segment. As it is, having several large sections of mutable data like this just leaves spots in memory that we can accidentally write to (via accidental overruns, what have you) and actually have it work. This ensures the font data remains the same no matter what.
Diffstat (limited to 'externals/open_source_archives/include/FontExtendedChineseSimplified.h')
-rw-r--r--externals/open_source_archives/include/FontExtendedChineseSimplified.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/externals/open_source_archives/include/FontExtendedChineseSimplified.h b/externals/open_source_archives/include/FontExtendedChineseSimplified.h
new file mode 100644
index 0000000000..94627dbcab
--- /dev/null
+++ b/externals/open_source_archives/include/FontExtendedChineseSimplified.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#include <array>
+
+extern const std::array<unsigned char, 293516> FontExtendedChineseSimplified;
+