?
Solved

Some special chars doesn't appear using Google Fonts

Posted on 2014-01-15
6
Medium Priority
?
555 Views
Last Modified: 2014-01-15
Hi.

The blog http://glutoniana.com is using some spanish characters (for example on a post title  "Año nuevo..." where is the "ñ" char.

A friend of mine test web on its Android tabled and the "ñ" char doesn't appear (it appear a white space on its place).

This blog is using Wordpress and the template uses some Google Fonts ( 'TitilliumText22LRegular' is the font used on these titles).

How can I make the ñ character appear on all devices?

Thank you
0
Comment
Question by:gplana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39782152
Not all fonts contain all characters!

When you use Google fonts, and click on the 'Use' button, you have the option of which character sets to include (Latin, Latin Extended, Cyrillic etc.)

If the font doesn't include all possible characters, then there's nothing you can do about it.
0
 
LVL 15

Author Comment

by:gplana
ID: 39782200
The character is shown well on my computer (on all browsers). Isn't it strange?

I will try what you said. Where should I configure? On the css file?
Can you give me an example? I'm a newbie on Google Fonts (the template was already made).

Thank you.
0
 
LVL 43

Expert Comment

by:Chris Stanyon
ID: 39782316
OK. Just looked at your site and you're not using Google Fonts - you are using a @font-face declaration in your CSS file (bottom of the styles.css file) to read the various formats of the font (ttf, eof, svg etc.)

I've looked at your site on Android and it's seems to be working OK for me.

The font you've used isn't particularly well designed (look closely at your site and you'll see the Spanish characters are actually a different font to the rest of the text).

It may simply be that the browser your friend is using doesn't support these additional characters from this particular font.

One thing I would do is change the way you declare your character set in the head of your page. At the moment you have this:

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Change it to this:

<meta charset="UTF-8">

Not sure what else you can try other than looking for a better quality font.
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 15

Author Comment

by:gplana
ID: 39783045
Thank you, I added the <meta charset="UTF-8" />

How can I look for a better quality font? What should I change when I found it to apply this new font instead of the old one?

Sorry, I'm a newbie about font types.

Thank you.
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 2000 total points
ID: 39783336
The problem with using the font-face declaration in your CSS is that you need the same font in 4 different formats to make sure it works in all browsers - ttf, svg, eot, and woff. The better quality fonts are usually the ones you pay for from a font library and they're not necessarily cheap.

There are tools available online to convert a ttf font into the other formats (fontsquirrel.com etc) but you have to be aware of copyright issues - you can't just convert any font. Font Squirrel have a lot of fonts available so you may find a good quality freebie there.

Managing fonts across all browser and platforms can be a little tricky if you're not careful so if you're new to using fonts, I would suggest that you start out by just using a standard web-safe font-stack in your CSS until you know things are working properly. For your headings, something like this would work:

font-family: Verdana, Geneva, sans-serif;

Forget about Google fonts, and font-face declarations for the time being. Make sure your site works the way you want it to (showing all characters across all browsers), and then think about adding fancy fonts, either by using Google Fonts (you simply add a link to the Google Fonts in the head of your document and then reference them in your CSS file), or grabbing a high-quality font set and fully testing it. As I said right at the start of this thread - not all fonts contain all characters - particularly the non-latin ones
0
 
LVL 15

Author Closing Comment

by:gplana
ID: 39783509
Great. Thanks.
0

Featured Post

Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to count occurrences of each item in an array.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question