Bon3head Posted March 6, 2004 Posted March 6, 2004 Does anyone know how to change the default font in php? I've changed the font in the css files (located in the theme dir) with no luck. I want the font style "agency" but all I get is arial. Is this because the font style is not on the server, or am I just not changing the right thing in the php code? Any help would be great! Quote
MikeJ Posted March 6, 2004 Posted March 6, 2004 Are you asking about phpBB or phpnuke (based on your mention of a themes directory)? PHP itself is just a scripting language. Anyway, the font that is displayed is based on what the end user has installed on his PC. So if you don't have agency on your PC, you won't see agency font on the page displayed. It's best to stick with common fonts for web pages. Quote
Bon3head Posted March 6, 2004 Author Posted March 6, 2004 phpnuke, and phpbb. Do you know what file would actually have to be modified to make that font change? I was under the impression it was the css files, which I've changed with no luck. I've got agency on my pc, but the site is still showing arial. I was asking around and someone said that the font would have to be on the server for it to work properly, didn't know if that was true or not, didn't sound right to me. That is why I was trying to find out if, in fact, the css files are what controls the font style, or if there is a diff. file that has to be edited too. Oh, yeah, love the hosting price! Rock Sign Quote
MikeJ Posted March 6, 2004 Posted March 6, 2004 The font does not have to be on the server. The rendering of the page is all handled locally on the end user's PC. The css file should be the correct file. Just make sure you are changing it in all appropriate sections of the css file. There are probably multiple font definitions in there. Quote
TCH-Bruce Posted March 6, 2004 Posted March 6, 2004 To change the fonts being used in phpBB go into the administration section of your board. Go down to the Styles Admin and select Management. Now select edit for the template you are using. You will see several places where you can enter fonts, sizes and colors. Make your changes and save your settings. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.