Jump to content

Rockwell Font On Desktop And Mobile Devices?


MSUK1

Recommended Posts

Hi there, im wondering how via css and html to get the font "rockwell" on mobile and desktop devices.

 

I at first used:

 

font-family:rockwell;

 

this worked on my desktop but not my iphone?

 

i can see a site www.just-eat.co.uk using this:

 

font-family:"RockwellRegular",Arial,Helvetica,sans-serif;

 

so i thought i'd try this straight copy and paste, but then i only get the arial font?

Link to comment
Share on other sites

by client do you mean devide being used to view website?

 

If so, the font i am looking for is installed on both mac, windows and iphone.

 

Like i said i visited just-eat.com and there font works on my iphone? However using their same code, does not work on my iphone?

 

If you mean installing on my server how do i do this?

Link to comment
Share on other sites

Fonts need to be installed on the client in order for the browser to use them.

You might need to do a little bit of homework, web fonts are starting to grow fast, and with some CSS tricks (and a compatible browser [iOS / Android included]) You can use whichever font you wish in your HTML.

Hi there, im wondering how via css and html to get the font "rockwell" on mobile and desktop devices.

 

I at first used:

 

font-family:rockwell;

 

this worked on my desktop but not my iphone?

 

i can see a site www.just-eat.co.uk using this:

 

font-family:"RockwellRegular",Arial,Helvetica,sans-serif;

 

so i thought i'd try this straight copy and paste, but then i only get the arial font?

 

What you need to do is make a server copy of the font you intend to use across your platform (or a number of fonts depending on how you plan on having your site)

Add this to your CSS:

@font-face {
   font-family: 'NameofFont'; /* Can be any name you wish this is a backreference for other CSS rules */
   src: url('font/file.ttf'); /* File name of the font file, IE apparently only accepts .EOT fonts; yet test passed on TTF */
}

And add this to any of your supporting rules:

body {
   font-family: NameofFont; /* Must match declaration in @font-face */
}

 

I have a sample in http://darkangel.sytes.net/webfont/

 

It was some random TTF font I downloaded named GoodDog, I was after something artistic and randomly named; you can check it out.

 

Font is NOT installed on my system (I cannot find or select it in a word processor; ect; not found in system font folder.)

 

Tested: [Passed] = Displayed Downloaded font

Android (Dolphin Mini) [Passed]

IE9(x64) [Passed]

Google Chrome [Passed]

FireFox [Passed]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.