Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Times New Roman on Android devices

For my client I'm building an website using the Times New Roman font.

Everything seems to work fine, except for Android devices (mobile, tablet). Android doesn't have a Times New Roman font available. As far as I know you can only use the Droid Serif font, which has a different look than Times. Besides that the font-size also differs and causes a lot of alignment issues.

Is there any way to use Times New Roman for Android? I know about fontface, but there isn't any free webfont available for Times New Roman. Maybe there's an (acceptable)equivalent for it?

Thanks in advance!

like image 530
remyjacobs Avatar asked Oct 18 '13 10:10

remyjacobs


People also ask

Did Google get rid of Times New Roman font?

Arial and Times New Roman fonts are now available in the text editor in Google Docs for users who have these fonts locally installed on their computers.

How do I change the writing style on my Android phone?

Open Settings. Tap Display. Tap Font and screen zoom. Select your choice of Font Style and you're done.

How do I add fonts to Android keyboard?

Long press on the home screen and select GO Settings. Choose Font–>Select Font. Pick the font you want or tap Scan to add files stored on your device.


1 Answers

CSS

@font-face {
    font-family: 'Times New Roman';
    src: url(LiberationSerif-Regular.ttf) format('truetype');
}
@font-face {
    font-family: 'Times New Roman';
    src: url(LiberationSerif-Italic.ttf) format('truetype');
    font-style: italic;
}
@font-face {
    font-family: 'Times New Roman';
    src: url(LiberationSerif-Bold.ttf) format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Times New Roman';
    src: url(LiberationSerif-BoldItalic.ttf) format('truetype');
    font-style: italic;
    font-weight: bold;
}

Download the Liberation Serif .ttf font, unzip and move files to webroot. you could change the @font-face source urls and move your fonts wherever you want.

like image 191
Stef Avatar answered Sep 30 '22 11:09

Stef