NUKnightLab / TimelineJS3

TimelineJS v3: A Storytelling Timeline built in JavaScript. http://timeline.knightlab.com
Mozilla Public License 2.0
2.98k stars 621 forks source link

Document font choices #337

Closed alipasas closed 7 years ago

alipasas commented 8 years ago

Sorry guys if this has been asked in the past. I can't seem to find a list of options to change the type of the timeline in a clear-cut way. I can only use "default" Can someone point me to such a list (if it exists somewhere)?

Thanks a mil

tjm++

JoeGermuska commented 8 years ago

By 'type' do you mean the fonts used? There's a menu in the authoring tool:

image

You are correct, though, that there ought to be a more explicit list.

The values can be any of the filenames in https://github.com/NUKnightLab/TimelineJS3/tree/master/source/less/fonts, after stripping font. from the beginning and .css from the end. You can also pass the fully-qualified URL to a font CSS file that is served on your system or anywhere else on the internet.

abril-droidsans
amatic-andika
base
bevan-pontanosans
bitter-raleway
clicker-garamond
dancing-ledger
default
fjalla-average
georgia-helvetica
knightlab
lustria-lato
medula-lato
oldstandard
opensans-gentiumbook
playfair-faunaone
playfair
pt
roboto-megrim
rufina-sintony
ubuntu
unicaone-vollkorn
alipasas commented 8 years ago

Mmmm, not quite sure now... What I mean is this: timeline

Thanks tjm++

JoeGermuska commented 8 years ago

The screenshot you show is from the previous version of TimelineJS. That JSON format is not supported any more.

In that version of Timeline, the type was used to distinguish title and era data from regular events. In the new JSON format, (documented pretty extensively here), titles and eras are configured under separate keys of the root JSON object.

alipasas commented 8 years ago

Indeed it's the old version. Thanks for the reply.