User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:font

(font: String) → Changer

This styling Command changes the font used to display the text of the attached hook. Provide the font's family name (such as “Helvetica Neue” or “Courier”) as a string.

Example usage:

(font:"Skia")[And what have we here?]

Details:

Currently, this command will only work if the font is available to the player's browser. If font files are embedded in your story stylesheet using base64 (an explanation for which is beyond the scope of this macro's description) then it can be uses instead.

No error will be reported if the provided font name is not available, invalid or misspelled.

See also:

harlowe/font.txt · Last modified: 2017/06/18 22:55 by l