--- OpenType font file detection
-- @module format.otf

local format = require("core.format")

format.register({
	name = "OpenType Font",
	shortname = "OTF",
	default_mode = "preview", -- Render the font unless the user chooses another mode
	extensions = { "otf" },

	-- Pattern breakdown:
	-- '^' anchors the signature at the start of the file
	-- 'OTTO' identifies OpenType fonts with CFF outlines
	headers = "^OTTO",
})
