soleum: (Default)
도깨비 ([personal profile] soleum) wrote in [community profile] style_system2017-08-01 11:31 am
Entry tags:

Webfont embedding on imported layouts

Good Morning!

I did not see any recent posts in regards to this, but I need a little assistance with webfonts, please! I'm just coming over from IJ/LJ, and I've imported flexible squares from the livejournal layout I was using.

Here is the css file I made for the fonts I currently use on my IJ. I'd like to use Nanum Gothic for my body fonts, and the other fonts for my subject lines and sidebar texts.

I know, I should learn about DW customization and its cores and all that. I probably will eventually, but for now I'd really like to continue using this layout with my own fonts (if possible!)

Honestly, if I could live with nothing but S1 Generator layouts for the rest of eternity, I would. Maybe it's a sign that I'm getting old, lmao. (On that note, if you guys know of any DW layouts out there that are comparable...please let me know!)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2017-08-03 12:47 pm (UTC)(link)
You *should* be able to use @font-face declarations in your CSS - are they getting stripped out somewhere? I see three different embedded webfonts on your current DW layout, all from dropbox.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2017-08-04 07:04 pm (UTC)(link)

Oh, I bet it's because IJ still uses S1, and we only have S2 - I'm gonna guess the functions that check the CSS for bad code are either choking on the link element or escaping it in a way that causes it to mess up the layout rendering. Can you try copying the entire contents of the external CSS file and putting them in your main one?

momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2017-08-10 07:00 pm (UTC)(link)

It might be stripping it out, yeah, You can try embedding it straight in the layout layer you're using - something in Page::Print there should be a section with the head tags. I'd put the link html right after the opening or right before the close (inside the quote marks surrounding the HTML). If that doesn't work, you may have to find a place to host them rather than embedding them directly as base64 encodes :\

baggyeyes: Bugs Bunny and the Bull (Default)

[personal profile] baggyeyes 2017-08-03 09:09 pm (UTC)(link)
Since you're writing a CSS sheet,
maybe try an @import? Example:

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


I don't know if this will help. I've been away from CSS and HTML stuff for a while.
baggyeyes: Bugs Bunny and the Bull (Default)

[personal profile] baggyeyes 2017-08-03 09:11 pm (UTC)(link)
Also, right at the bottom of the Customization/Font page, you can add the URL

http://www.dreamwidth.org/customize/options?group=fonts
marahmarie: (M In M Forever) (Default)

[personal profile] marahmarie 2018-03-02 05:44 am (UTC)(link)
This is what I do, though it also works if I embed the HTML link to it in my theme layer (which I no longer do because that just creates a separate style sheet on DW with the same CSS - if I want to change the fonts around it's easier to keep it all together).