Skip to content

Custom Font starting 2.5.0

Mark Kevin Baldemor edited this page Jan 9, 2021 · 1 revision

Introduction

Starting version 2.5.0 , we have reworked then Font Installation. Roboto font resources were extracted out from gwt-material project and let the developers apply there designated font resources on the app level - this feature will be comming on 2.5.0 .The benefit for this is gwt-material now removed the font resources (Which becomes lightweight) and developers can use any font resources instead of roboto.

Installation

  1. Prepare any Font Resources Files (.ttf, .woff etc) and place it to your webapp/font directory.
  1. Create your font.css (i.e roboto.css) and create a reference to your Font Resources Files using @font-face.

  2. Include the css file on either using <link href="font/roboto.css" /> into your index.html or using ClientBundle for dynamic injection.