MyBB Community Forums

Full Version: [Request] Google Font MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! I was hoping someone might be able to help me with a custom code?

What I want is a code like such:

[gfont=Google Font Name] ... [/gfont]

but I am unsure how to code this.

Thank you for any assistance!

So far I have this;
\[gfont=(.*?)\](.*?)\[/gfont\]

But I'm unsure what to put in the Replacement box.
ThistleProse, there is no difference between Google fonts and other web fonts. You will need to alter a style sheet to include each font you want to support. After that, the built-in font MyCode will work.

@import url('https://fonts.googleapis.com/css?family=Tangerine');