Comments on: font-variant https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Tue, 31 May 2022 14:12:09 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Mariel https://css-tricks.com/almanac/properties/f/font-variant/#comment-1751934 Fri, 11 Oct 2019 17:44:14 +0000 http://css-tricks.com/?page_id=22053#comment-1751934 Thank you for the info!

]]>
By: monty https://css-tricks.com/almanac/properties/f/font-variant/#comment-1605347 Thu, 01 Dec 2016 14:45:33 +0000 http://css-tricks.com/?page_id=22053#comment-1605347 Can this font variant tool be used in Adobe Photoshop CC to reduce the file size of a logo that will be saved in “.png” or “gif format, since google has a 30kb size limit for their logo size in their G suite app?

Peace!

]]>
By: Paul A. https://css-tricks.com/almanac/properties/f/font-variant/#comment-1605261 Tue, 29 Nov 2016 06:04:43 +0000 http://css-tricks.com/?page_id=22053#comment-1605261 In reply to Eva.

The workaround is mentioned in the article: “text-transform: lowercase”. You can write the acronym in caps in the HTML source, and when the CSS is applied it is transformed to lowercase before being converted to small caps.

]]>
By: Ima RockStar https://css-tricks.com/almanac/properties/f/font-variant/#comment-1586726 Fri, 14 Nov 2014 16:48:24 +0000 http://css-tricks.com/?page_id=22053#comment-1586726 In reply to Josh.

simply not true. Maybe a Microsoft employee? :)

]]>
By: Eva https://css-tricks.com/almanac/properties/f/font-variant/#comment-1584067 Sat, 26 Jul 2014 09:13:33 +0000 http://css-tricks.com/?page_id=22053#comment-1584067 I think it’s kind of awkward that font-variant: small-caps won’t apply to caps written text. I like to keep my original texts as meaningful as possible, so whenever I write an acronym as HTML, I like to keep it in caps but display it in small caps via CSS. But regarding my logic, it does not work, as mentioned above, it only works on lowercase. Would there be any workaround for it? Perhaps just use a class on the acronym with a lower font-size? :-S

]]>
By: Mike Higginbottom https://css-tricks.com/almanac/properties/f/font-variant/#comment-1515767 Fri, 04 Apr 2014 15:56:40 +0000 http://css-tricks.com/?page_id=22053#comment-1515767 Chris/Louis, I’ve got my suspicions that font-variant is more broken than this. I’ve only done some quick tests on Chrome but font-variant doesn’t produce ‘proper’ small-caps (in the sense of different glyphs) but rather it just produces small uppercase glyphs; which isn’t really what small caps are all about. I’ve written a quick article which highlights the problem and a potential solution. It’s by no means a rigorous browser survey but hopefully it shines a little light.

]]>
By: Louis https://css-tricks.com/almanac/properties/f/font-variant/#comment-746270 Sun, 01 Dec 2013 22:34:20 +0000 http://css-tricks.com/?page_id=22053#comment-746270 In reply to Max.

No, probably not. The example in CodePen should be using Normalize.css, so if there was any way to fix that, I’m sure it would be in there. I think it’s just a minor browser difference that you’ll have to deal with.

]]>
By: Max https://css-tricks.com/almanac/properties/f/font-variant/#comment-746202 Sun, 01 Dec 2013 22:10:25 +0000 http://css-tricks.com/?page_id=22053#comment-746202 In reply to Max.

I mean small-caps of course.

]]>
By: Max https://css-tricks.com/almanac/properties/f/font-variant/#comment-746196 Sun, 01 Dec 2013 22:08:22 +0000 http://css-tricks.com/?page_id=22053#comment-746196 The font-variant property isn’t crossborwser. In webkit letters are smaller than other browsers. Is there a way to fix it?

]]>
By: Andy https://css-tricks.com/almanac/properties/f/font-variant/#comment-580925 Wed, 09 Oct 2013 16:29:44 +0000 http://css-tricks.com/?page_id=22053#comment-580925 Josh,

Thanks for the info re: the optimizeLegibility bug in webkit. I couldn’t figure out why font-variant wasn’t working and it was driving me nuts.

]]>
By: Louis https://css-tricks.com/almanac/properties/f/font-variant/#comment-483979 Fri, 12 Jul 2013 22:25:14 +0000 http://css-tricks.com/?page_id=22053#comment-483979 In reply to Josh.

Ah ok, no prob. Interesting, because I don’t know much about that property. And now that I check on it:

https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering

It says:

“The text-rendering property is an SVG property that is not defined in any CSS standard”, but it still works in general HTML.

]]>
By: Josh https://css-tricks.com/almanac/properties/f/font-variant/#comment-483967 Fri, 12 Jul 2013 21:52:09 +0000 http://css-tricks.com/?page_id=22053#comment-483967 In reply to Josh.

Louis,

Glad you’re working on this almanac. It’s very useful! I realize now that I have this bug and another bug on the brain, and I got my streams crossed.

It’s actually in Webkit with text-rendering: optimizeLegibility…

https://code.google.com/p/chromium/issues/detail?id=51973

Sorry about the confusion. Not sure if it’s a big enough deal to note or not. Caused me some heartburn today.

]]>
By: Louis https://css-tricks.com/almanac/properties/f/font-variant/#comment-483957 Fri, 12 Jul 2013 21:33:23 +0000 http://css-tricks.com/?page_id=22053#comment-483957 In reply to Josh.

Josh,

Do you have a link to a bug report or an article describing this? I can’t find anything via Google for font-variant specifically, and I haven’t heard of this bug before.

I’m helping Chris with some of these Almanac entries and I’ll be happy to update this if you have something specific with a link or even just a demo for comparison with other browsers.

Thanks!

]]>
By: Josh https://css-tricks.com/almanac/properties/f/font-variant/#comment-483854 Fri, 12 Jul 2013 16:50:15 +0000 http://css-tricks.com/?page_id=22053#comment-483854 Chris,

It should be noted that there is presently a Webkit bug that stops font-variant from working properly on non-system fonts. I’m sure they’re working on a fix, but 2 years after release, Google fonts still look atrocious in Chrome. ;)

]]>