aboutsummaryrefslogtreecommitdiff
path: root/font_api
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2018-07-09 07:19:27 +0000
committerGitHub <noreply@github.com>2018-07-09 07:19:27 +0000
commita83d494d45bdb15cd65749bc8ce505a9e7dc1f8a (patch)
tree8634ac2eb7cabfd4d67900bfb584f2eae5432004 /font_api
parentd3aae9b2626a8d4afda34e78de037de3fb181b1c (diff)
downloaddisplay_modpack-a83d494d45bdb15cd65749bc8ce505a9e7dc1f8a.tar.gz
display_modpack-a83d494d45bdb15cd65749bc8ce505a9e7dc1f8a.tar.bz2
display_modpack-a83d494d45bdb15cd65749bc8ce505a9e7dc1f8a.zip
Fix typos in API.md
Diffstat (limited to 'font_api')
-rw-r--r--font_api/API.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/font_api/API.md b/font_api/API.md
index 4c711be..9900a80 100644
--- a/font_api/API.md
+++ b/font_api/API.md
@@ -12,12 +12,12 @@ If no default\_font given or if default\_font given but not registered, the firs
### font_api.get_default_font_name()
Returns de default font name.
-###font_api.register_font(font_name, font_def)
+### font_api.register_font(font_name, font_def)
Register a new font.
**font_name**: Name of the font to register. If registering different sizes of the same font, add size in the font name (e.g. times_10, times_12...).
**font_def**: Font definition table (see **Font definition table** below).
-###font_api.on_display_update(pos, objref)
+### font_api.on_display_update(pos, objref)
Standard on_display_update entity callback.
**pos**: Node position
@@ -26,7 +26,7 @@ Standard on_display_update entity callback.
Node should have a corresponding display_entity with size, resolution and maxlines fields and optionally halign, valign and color fields.
-###Font definition table
+### Font definition table
Font definition table used by **font_api.register_font** and **font\_api.Font:new** may/can contain following elements:
* **height** (required): Font height in pixels (all font textures should have the same height) .