[Proflat] Changing font

For support and discussion related to templates, themes, and imagesets in phpBB 3.1.
Suggested Hosts
bsolah
Registered User
Posts: 86
Joined: Sun Feb 19, 2006 12:32 am
Location: Melbourne, Australia

[Proflat] Changing font

Post by bsolah »

Wondering how to go about changing the font in proflat, it seems to have its own font, and point to a bunch of styles, lots of code. I was thinking of making it display in San-Francisco or one of the Google Fonts.
Image
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: [Proflat] Changing font

Post by Lumpy Burgertushie »

a style's font is defined in the css for that style.
the main font for prosilver styles is named in the first part of the common.css file.
a user will only be able to see text in a font that is installed on their computer unless you provide the font for them like this example from one of my boards:

Code: Select all

@font-face {
    font-family: 'hollywood_capital_hillsRg';
    src: url('./fonts/hollywood_capital_hills_final-webfont.eot');
    src: url('./fonts/hollywood_capital_hills_final-webfont.eot?#iefix') format('embedded-opentype'),
  	 url('./fonts/hollywood_capital_hills_final-webfont.woff') format('woff'),
   	 url('./fonts/hollywood_capital_hills_final-webfont.ttf') format('truetype'),
   	 url('./fonts/hollywood_capital_hills_final-webfont.svg#hollywood_capital_hillsRg') format('svg');
    font-weight: normal;
    font-style: normal;

}
you have to create a fonts folder in the theme folder and put the font files in there.

or, for google fonts I believe there is a different way to do it you would need to ask google I suppose.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.

Return to “[3.1.x] Styles Support & Discussion”