2016-08-25 21:58:28 +02:00
|
|
|
--[[
|
2018-12-11 11:57:54 +01:00
|
|
|
font_api mod for Minetest - Library creating textures with fonts and text
|
|
|
|
(c) Pierre-Yves Rollo
|
2016-08-25 21:58:28 +02:00
|
|
|
|
2018-12-11 11:57:54 +01:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2016-08-25 21:58:28 +02:00
|
|
|
|
2018-12-11 11:57:54 +01:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2016-08-25 21:58:28 +02:00
|
|
|
|
2018-12-11 11:57:54 +01:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2016-08-25 21:58:28 +02:00
|
|
|
--]]
|
2015-11-28 20:44:04 +01:00
|
|
|
|
2016-12-25 20:14:56 +01:00
|
|
|
-- Global variables
|
2018-01-13 12:38:55 +01:00
|
|
|
-------------------
|
2016-12-25 20:14:56 +01:00
|
|
|
|
2018-02-01 16:54:55 +01:00
|
|
|
font_api = {}
|
|
|
|
font_api.name = minetest.get_current_modname()
|
|
|
|
font_api.path = minetest.get_modpath(font_api.name)
|
2015-11-28 20:44:04 +01:00
|
|
|
|
2018-07-08 20:36:34 +02:00
|
|
|
-- Inclusions
|
|
|
|
-------------
|
2018-01-13 12:38:55 +01:00
|
|
|
|
2018-07-08 20:36:34 +02:00
|
|
|
dofile(font_api.path.."/font.lua")
|
|
|
|
dofile(font_api.path.."/registry.lua")
|
2018-11-10 22:35:47 +01:00
|
|
|
dofile(font_api.path.."/fontform.lua")
|
2018-12-11 11:41:03 +01:00
|
|
|
if minetest.get_modpath("display_api") then
|
|
|
|
dofile(font_api.path.."/display_api.lua")
|
2015-11-28 20:44:04 +01:00
|
|
|
end
|
2018-12-11 11:52:55 +01:00
|
|
|
dofile(font_api.path.."/deprecation.lua")
|