Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-07-31 10:38:50

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

[Solved] Bold and italic not rendering

Relocating issue here to not clog up Gocom’s rah_textile_bar thread. Start of discussion (in case you’re interested).

In short, I’m working on a site in dev (secured directory), install is 4.4.1. The problem I’m having is bold and italic formatting isn’t working. It makes no difference if applied via Textile or via raw html tags. The markup is shown correctly when page source is viewed, and the markup is also correct in the database. But for whatever reason the bold and italic formatting does not render.

At first I thought this might be due to hak_tinyMCE and/or rah_textile_bar for some reason, but neither should be the case as Hakjoon and Gocom have assured, and in fact when turning these plugins off, the problem remains.

Then I thought I had it figured out because I was using a Google font that did not have bold and italic versions. But after changing to another font and selecting bold and italic versions, the problem remains. So I removed the Google font link entirely and the problem still remains with a common desktop font like Arial.

So I’m clueless at this point. I’ve never seen this before. What could possibly be the reason for bold and italic not rendering?

Offline

#2 2011-07-31 10:55:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,163
Website GitHub Mastodon Twitter

Re: [Solved] Bold and italic not rendering

Hi Destry

Did you check your css? It is the only thing I can think of. A good test might be to view the article without any style (firefox has this option under the view menu in mac)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2011-07-31 11:40:47

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,368
Website

Re: [Solved] Bold and italic not rendering

Not rendered or not styled as expected ?

Have you checked through WebKit Inspector, Firebug or Opera DragonFly or IE 8-9 ‘s debug tool ?

Inspect element and check all styles that are applied.

bits of debugging code in your stylesheet might help:

i, em, b, strong { background: yellow; }

and things like that


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#4 2011-07-31 12:34:40

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [Solved] Bold and italic not rendering

Thanks guys. I had went through my styles. The tools weren’t really helping; not in terms of flagging anything (outside of some background color violations I need to fix).

But this lead me to look at my reset styles closer (a variation of Eric Meyers’) and the only rule I was unsure about was font: inherit;.

I took that out and problem fixed!

So apparently if you use that you have to declare bold and italic directly or it doesn’t work? I guess it overrides browser defaults? I would have thought defaults would still apply first and then inherit would kick in for whatever you defined differently. I guess not.

Anyway, this means the problem was there since the beginning, and I never noticed it. Granted, the client is doing the content, and they brought it to my attention by noticing a problem when trying to use bold.

What a waste of time. But I learned something.

Offline

#5 2011-07-31 12:39:32

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,368
Website

Re: [Solved] Bold and italic not rendering

The font shorthand resets all font properties (-weight, -style, -variant, etc).
http://www.w3.org/TR/CSS21/fonts.html#font-shorthand


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#6 2011-07-31 12:41:34

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [Solved] Bold and italic not rendering

Never too late to be schooled. :)

Offline

Board footer

Powered by FluxBB