Frequently Asked Questions (FAQ)

What’s difference between initialFont and fonts.defaultFontName

  • initialFont” (webrec.json/webrec.base.json) – font which will be used for any new created paragraph in the document
  • font.defaultFontName” (webrec.properties/application.properties) – first font which will be loaded before showing webRec document. When this font is loaded, webRec will be shown and document will be rendered with this font only. Then in background all other fonts will be downloaded and used inside the document. You could see this with https://localhost/webrec/examples/fullScreenDemo.html

At customer environment for better look and feel we expect both of them initialized with the same value:

  • “initialFont” : “Georgia"
  • fonts.defaultFontName = Georgia

But of course fonts.defaultFontName could be provided as any available font in setup (the smaller file size it has – the faster initial rendering of the document will be done).