2023-03-17 03:39:41 +01:00
|
|
|
#!/usr/bin/env lua5.1
|
|
|
|
|
|
|
|
--[[
|
|
|
|
Copyright © 2023 Nils Dagsson Moskopp (erle)
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
Dieses Programm hat das Ziel, die Medienkompetenz der Leser zu
|
|
|
|
steigern. Gelegentlich packe ich sogar einen handfesten Buffer
|
|
|
|
Overflow oder eine Format String Vulnerability zwischen die anderen
|
|
|
|
Codezeilen und schreibe das auch nicht dran.
|
|
|
|
]]--
|
|
|
|
|
|
|
|
unicode_text = {}
|
|
|
|
|
2023-09-04 20:13:08 +02:00
|
|
|
local modpath = minetest and
|
|
|
|
minetest.get_modpath and
|
|
|
|
minetest.get_modpath("unicode_text") or
|
|
|
|
"."
|
2023-03-18 22:33:18 +01:00
|
|
|
-- unicode_text only supports GNU Unifont .hex file format for now
|
2023-09-04 20:13:08 +02:00
|
|
|
dofile( modpath .. "/hexfont.lua" )
|
2023-03-17 03:39:41 +01:00
|
|
|
unicode_text.hexfont = hexfont
|
2023-09-04 19:13:51 +02:00
|
|
|
unicode_text.utf8 = utf8
|