Use custom fonts in Text/Ticker/DataSet

Registered by Dan Garner

It would be useful to assign and send a custom font for use with the Ticker/Text/DataSetView modules (and other).

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Dan Garner
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 1.7.0-alpha2
Started by
Dan Garner
Completed by
Dan Garner

Related branches

Sprints

Whiteboard

Target for 1.7 alpha, but might slip..

Would need to use the @font-face CSS3 tag to reference the custom font. Would also need some way for this to slip into CKEditor (perhaps re-writing some temporary CSS?)

Workaround and possible implementation notes (the client would have to substitute this field though)
modules/preview/HtmlTemplateForGetResource.html

Line 10 ish (depending on your version the line number might be different, but you are looking for the <style type=text/css> declaration. Just after that and before the body { declaration add:

@font-face {
 font-family: <<the name you used in the CMS>>;
 src: url('file://<<your font path>>/<<your font name>>.ttf');
}

That should load the font resource for Android to use.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.