Here is my CSS to replace the font of the entire application with Roboto, the ICS font of Android 4.0.
@font-face { font-family: 'RobotoRegular'; src: url('../font/roboto/RobotoRegular.eot'); src: url('../font/roboto/RobotoRegular.eot?#iefix') format('embedded-opentype'), url('../font/roboto/RobotoRegular.woff') format('woff'), url('../font/roboto/RobotoRegular.ttf') format('truetype'), url('../font/roboto/RobotoRegular.svg#RobotoRegular') format('svg'); font-weight: normal; font-style: normal; } body * { font-family: "RobotoRegular" !important; font-weight: normal !important; }
You may need to target certain items if the above is not enough. I should also have included the following:
.ui-btn-up-a,.ui-btn-hover-a,.ui-btn-down-a,.ui-bar-a,.ui-body-a,.ui-btn-up-a,.ui-btn-hover-a,.ui-btn-down-a,.ui-body-a input,.ui-body-a select,.ui-body-a textarea,.ui-body-a$ font-family: "RobotoRegular"; }
Hope you get better. Good luck.
darryn.ten
source share