문제

I am developing a Wicket Application, where I am using a custom ttf font. I have placed the font copied from my Windows 7 in the war and have used in css as:

@font-face {
    font-family: Kunstler;
    src: url('fonts/KUNSTLER.TTF');
}

and then:

.parent p {
    font-family: Kunstler;
    font-size: 36px;
}

Since I am running the application from locally. I cannot see whether or not it is working in Linux or Mac.

I don't know the mechanism, that how the browser renders font.

My question is:

  • Is it safe to use font this way?
  • Will this work in all kind of machine(Linux, Windows, Mac)?

Thanks in advance.

도움이 되었습니까?

해결책

You can use "browsershots", to see how the page looks (it supports lot's of browsers and operating systems), just make the website visible for it and it will render the webpage fo you.

다른 팁

Easiest way to find out would be to set up a popular Linux distribution in a virtual machine running atop your windows installation, or boot off of a liveCD or installer with a "try it without installing" mode.

But do you have a license to distribute that font?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top