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