Question

I am developing an jsf2.2 application where, i have put some fonts files on server side a login screen on that application, when user log in successfully i want to download some fonts file to client side path(C:\Windows\Fonts) so that user can have same fonts which are used in application.

Was it helpful?

Solution

use css for this. Paste this code at the start of your css:

@font-face {
  font-family: "Helvetica Neue";
  src: url( "HelveticaNeue-Light.woff.jsf?ln=css" ) format("truetype");
}

In this specific case the woff file placed in the reasources/css folder.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top