Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top