Change font type for whole app

I want to change the font-type app-wide. I want to use Roboto (http://developer.android.com/design/style/typography.html)

Any clues on how to achieve this? Is there a Rhodes specific way to do it?

Bhakta Ranjan S...
Hi,To use any customized

Hi,

To use any customized fonts, you can use google web fonts. https://developers.google.com/webfonts/docs/getting_started

To try this when you offline, you can download the font files and can use like below

@font-face {

  font-family: 'Droid Sans';

  font-style: normal;

  font-weight: normal;

  src: local('Droid Sans'), local('DroidSans'), url('path/to/DroidSans.ttf') format('truetype');

}

body {

    font-family: 'Droid Sans', Arial, sans;

    color: #666;

}

Hope this will help you.

Thanks

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Daniel López Lacalle
Hey.Thanks for the answer. I

Hey.

Thanks for the answer. I already tried that to no avail like this:

@font-face{

          font-family: 'roboto';

          src: url('/public/fonts/Roboto-Thin.ttf') format('truetype');

}

body{

    font-family: 'roboto';

}

I'm using jquery mobile (as it comes with a new rhodes app project). Maybe there's a setting for that or something?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Bhakta Ranjan S...
Hi,When you add this style in

Hi,

When you add this style in your css file or layout.erb file, is font-face implementation  works fine for you ?

If yes you can easily implement font-face using jquery mobile.

Thanks

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Daniel López Lacalle
I guess I don't understand..

I guess I don't understand...

Using that is not working. It is not changing the font.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
If you're writing a

If you're writing a RhoElements application (app_type:rhoelements) you can also use the FontFace configuration option, http://docs.rhomobile.com/rhoelements/ConfigurationSettings.

For a standard Rhodes app hopefully Bhakta's advice has helped.

Thanks,

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
It is a Rhodes app

It is a Rhodes app

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments