Serve Google fonts locally

Serve Google fonts locally

I've only been able to get the font to work in the editor when you actually have the font installed on your PC
 
Tracy Perry updated Serve Google fonts locally with a new update entry:

Use Google Fonts in Redactor

OK, now that you have your Google Fonts being loaded locally adding them into the Redactor editor turns out to be an easy proposition. All you have to do is edit the js/xenforo/bb_code_edit.js file (make a copy of your original FIRST!) and do a search on Arial. Once you find that segment in the bb_code_edit.js file, adding your font is a simple matter of placing it where you want it in the other fonts. They are listed...

Read the rest of this update entry...
 
Tracy Perry updated Serve Google fonts locally with a new update entry:

Add locally hosted fonts to editor (updated)

OK, now that you have your Google Fonts being loaded locally adding them into the Redactor editor turns out to be an easy proposition. All you have to do is edit the js/xenforo/bb_code_edit.js file (make a copy of your original FIRST!) and do a search on Arial. Once you find that segment in the bb_code_edit.js file, adding your font is a simple matter of placing it where you want it in the other fonts....

Read the rest of this update entry...
 
Actually @MattW, if you will check the updated "Update" I did you will see a screenshot that shows that they do. ;)
I was actually referring to the font appearing as you are typing in the editor. That only seems to work if you have the font installed locally on your machine.
 
I was actually referring to the font appearing as you are typing in the editor. That only seems to work if you have the font installed locally on your machine.
Me need to go back to school... me need to attend reading comprehension 101 again. :ROFLMAO:

I wish I could figure out a way to make it display them as you are typing as they do it everywhere else (like the drop down list that shows the fonts).
 
Last edited:
*NOTE*
When entering the message the font WILL NOT be typed in the selected format, but when saved it WILL display in it.

Hi Tracy. May I know why when the font is installed. It wouldn't appear as the format within the editor?
 
Hi Tracy. May I know why when the font is installed. It wouldn't appear as the format within the editor?
Not a programmer so can't really tell you. I know there has to be a way to get it to but I haven't dug into it that deeply since I got away from offering all kinds of fancy fonts to my users in the editor (makes some of the messages harder to read especially when combined with colors that some of them have a tendency to use.
 
You are right installing too much font I think is a bad idea. .. I just want to add 1 font .. the comic sans ms. but I would also like to have it appear in the editor when the user is typing within the editor.. I think there's some editing on the js script that generates the editor this case. I will research some more.

Thanks for replying Tracy.
 
So what happens if someone only installs 2 fonts (regular and bold) and italic is called in a post?
I guess I'm wondering if I should dl all of the font variations like you have listed in your css

The reason I ask what is probably a dumb question is that Flat Awesome seems to -out of the box- call 2 google fonts: 400 (reg) and 700 (bold) with nothing listed for italics or other variations
 
Are you using nginx as an HTTP server?
Are you using CentOS/CentMin or what OS?

You can always enter the commands
updatedb
locate nginx.conf
from the command line of your SSH shell and it will give you the location of the nginx.conf.
 
Are you using nginx as an HTTP server?
Are you using CentOS/CentMin or what OS?

You can always enter the commands
updatedb
locate nginx.conf
from the command line of your SSH shell and it will give you the location of the nginx.conf.
Im completely new to this stuff, so Im not so sure what I'm using and so on. i littereatly followed the install guide and thats all I've done. no idea if I'm using nginx, or know what CentOS/cent Min is.
 
Im completely new to this stuff, so Im not so sure what I'm using and so on. i littereatly followed the install guide and thats all I've done. no idea if I'm using nginx, or know what CentOS/cent Min is.
The guide was written for use with nginx - specifics for Apache were not given since I haven't touched an Apache based system for my use in many years.
From what some other people have said, you don't really have to make any modifications with Apache.
Just try creating the /font directory in your web root, place the font files in there and then make the CSS edits that are appropriate in EXTRA.css and see if it works.
 
The guide was written for use with nginx - specifics for Apache were not given since I haven't touched an Apache based system for my use in many years.
From what some other people have said, you don't really have to make any modifications with Apache.
Just try creating the /font directory in your web root, place the font files in there and then make the CSS edits that are appropriate in EXTRA.css and see if it works.
That got my fonts working on desktop, but somehow it isn't working on mobile devices?
 
That got my fonts working on desktop, but somehow it isn't working on mobile devices?
Which mobile device(s)? They've worked for all the iPhones I've got and the 2 Androids (HD Max and a RAZR MAXX).
Also, which browser - the built in or a market one?
As you can see, on my iPhone 6 using Chrome it works (it's using Borg9 in the Last Post area) - and yes, I need to work on the logo to downsize it on mobile.

IMG_1507.webp
 
Last edited:
Im using an iPhone 6+ on both safari & google chrome.
I'm running iOS 9 beta so I don't know if thats got something to do with it but its doing it on my iPad which is iOS 8

The font I'm using is Oswald, and my forum is gamecave.co/community/
 
Top Bottom