Adding fonts.com fonts?

Posted in: Newspaper
Post count: 26

I know Google fonts and Typekit are supported.

Client already has a myfonts.com account. Much like fonts.com, they distribute a bunch of files like this:

partial font list

That’s a ton of files. And the filenames don’t indicate which weight each is, so quite a pain to try to step through this in the “custom font files” section of Newspaper’s settings.

Any tips on how to use these (and other) third party fonts distributed with these obfuscated names?

Post count: 7909

Hi,

It is specified in the documentation how to add a custom font – https://forum.tagdiv.com/using-custom-fonts/ Basically you will have to upload the font and in Theme Panel > Theme Fonts(check the guide) you will have to specify the link(specific path where you have uploaded the font) and set the font name.

Thanks!

Post count: 26

Yeah, I know that, that’s why I noted it’s a real pain to add that many fonts, especially when they are named like that. Is there an easier way? fonts.com, myfonts.com and others all distribute fonts like this (with obfuscated filenames), being able to import them in one or two steps is preferable to (literally) repeating the “custom font addition” process 50 times (which also means looking up what font, style and weight each is due to the obfuscation).

Post count: 9544

Try the tutorials on font squirrel which describe simple ways to load custom font libs. Theme cannot import libs… There is no script to do that in any theme ive seen the past decade. You basically add the font loading to your style sheet and replace the default font calls.

Post count: 26

Bummer. If I add it outside the theme, then I lose the ability to switch fonts (well, I don’t, but the client does). The client specifically will be needing to mix normal weight and a few other weights within posts.

Post count: 26

Another question. I have 9 fonts. The custom font screen allows me to add only 3. How do I add the additional 6 fonts I need?

Post count: 9544

If it were me I would wait for TagDiv to possibly point you at the font loader php file where you could add in all those fonts with help of a devoloper if you would not be able to, which would add the fonts “hard coded” into the includes file, so that those fonts are loaded as menu options, and then hard code the font calls into the style.css to “always load” that family.

This way you “load the family” manually, but can select font “assignments” from the theme panel which are then applied to the specific classes.

Seems like that might work.

Or, hack the function file to give more font import locations from 3 to 9.

Post count: 22421

Hi,
You can follow this topic to see how you can increase the number of custom fonts you can load:
https://forum.tagdiv.com/topic/additional-custom-fonts-files/
Thank you!

Post count: 26

I know this is old, but there seems to be a bug somewhere here. I moved the site and while I was able to update all the URLs for attachments and such, I’m running into a lot of problems getting the custom font urls changed.

I’ve tried the following:

– Going to the theme panel, then the custom fonts panel, and changing the font URLs. Changes appear to be successfully saved, but on review of the page source and the options in the db, the old URL to the fonts is still there.

– Going to the database and manually editing the field with the Newspaper settings (changing all references to the old URL to the new URL). After this, the theme reverted to defaults, as if it was unable to parse the options.

– Using the Export function, base64 decoding that file, again, search and replace on the URL, base64 encoding and importing back into Newspaper. Same effect as the database edit, theme reverted to defaults.

What other options to alter this?

I’m still on Newspaper6, I have no interest in starting over with Newspaper7, nor does the client.

Post count: 22421

Hi,

Unfortunately I’m not sure as we have not tested this on our end. You can try to ditch the font entirely and adding it again in the custom fonts section and re-applying the settings in the fonts section. Maybe try to use another name for the font so it will create a new database entry. If you update to newspaper 7, the theme fonts are much easier to handle as they will be added to the media library and get pulled from there. (Much simpler)

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.