Jump to content


Photo

Importando Fontes Com @Font-Face


  • Faça o login para participar
24 replies to this topic

#1 Édipo Costa Rebouças

Édipo Costa Rebouças

    Veterano

  • Ex-Admins
  • 1079 posts
  • Sexo:Masculino
  • Localidade:Brasil - São Paulo

Posted 29/06/2010, 13:20

Muitas vezes nos deparamos com layout's com fontes fora do padrão comum de suportadas pela grande maioria dos computadores, dependendo da quantidade de vezes que a fonte se encontra na página podemos utilizar diversas soluções.

Caso a fonte apareça de titulo em algumas caixas, é viável fazer com imagens.

Caso apareça nos titulos dos posts, é viavel fazer com image replacement, e dependendo do tamanho do site, com imagens.

Agora, para textos, eu recomendaria duas alternativas, ou o designer coloca uma fonte comum, ou se usa a importação de fontes via CSS com @font-face.

A importação de fontes via CSS era suportada há muito tempo pelo Internet Explorer desde sua versão 4, e recentemente no Mozilla Firefox, Google Chrome, Safari e Opera.

A declação para se importar fontes no CSS basicamente é:


@font-face {
  font-family: Gentium; /*nome da fonte*/
  src: url(http://site/fonts/Gentium.ttf); /* url da fonte*/
}
Mas como nem tudo são flores nesse mundo CSS, por a Microsoft ser pioneira nessa funcionalidade, acabou implementando o seu @fonte-face com um padrão de fonte que só o Internet Explorer suporta e ele só consegue usar esse formato, ele é o Embedded OpenType.

Basicamente o Embedded OpenType é uma fonte TrueType compactada num formato que a Microsoft criou.

Então para usar as fontes tanto no Internet Explorer quanto em outros browsers, você tem que importar o arquivo da fonte padrão(TrueType) e o arquivo .eot(Embedded OpenType) dela para funcionar em ambos os browsers.

Existem hoje na web vários sites e softwares que convertem fonte TrueType em Embedded OpenType, vou deixar alguns links de referência no final do artigo, onde alguns deles serão dessas ferramentas, não vou explicar uma ferramenta, pois logo ela para de ser disponibilizada ou fica obsoleta.

Para inserir as duas fontes, temos varias alternativas se tratando de declaração CSS, um a delas é usar comentários condicionais:

<style type=”text/css”>
@font-face { 
    font-family: "testing";
    src: url("output.ttf") format("truetype");
}
</style>
<!--[if IE]>
<style type=”text/css”>
@font-face { 
    font-family: "testing";
    src: url("output.eot");
}
</style>
<![endif]-->

Outra, é declarar primeiro a fonte para o Internet Explorer, depois para os outros browsers:
@font-face { 
    font-family: "testing";
    src: url("output.eot");
}
@font-face { 
    font-family: "testing";
    src: url("output.ttf") format("truetype");
}

Outra, por um método chamado de smile ( PS: nunca testei ):

@font-face {
    font-family: 'Dax Regular'; /*nome fonte*/
    src: url('dax.eot'); /* url fonte para ie */
    src: local('Dax'), url('dax.woff') format('woff'), url('dax.ttf') format('truetype'), url('dax.svg#webfont') format('svg'); /* url fonte para outros browsers, local('Dax') fala pra primeiro buscar a fonte Dax no computador do usuário, caso não encontrar ira baixar uma dessas fontes */
}

Não é só o padrão TrueType de fontes que é suportado pelo @font-face, mas é o único que é possível ser convertido para Embedded OpenType.

Procure usar o @fonte-face com fontes gratuitas, pois como a fonte é baixada para o computador do usuário, os criadores das mesmas combram um lincensa especial para esse tipo de uso.

Referências:
http://code.google.com/p/ttf2eot
http://code.google.c...f2eot/wiki/Demo
http://edsonjunior.c...fontes-ttf-eot/
http://paulirish.com...ntation-syntax/
http://www.w3.org/TR...-font-face-rule

#2 Cristiano Galdino

Cristiano Galdino

    Dark Defender

  • Administradores
  • 3738 posts
  • Sexo:Masculino
  • Localidade:Brasília, DF

Posted 29/06/2010, 14:43

Fera Édipo! Sempre aparece um cliente que quer aquela fonte péssima de ler e que só existe no computador dele.
Cristiano Galdino
- http://cristiano.galdino.net/

“Since 2003”


#3 André Manoel

André Manoel

    Doutor

  • Usuários
  • 996 posts
  • Sexo:Masculino
  • Localidade:Brasilia

Posted 29/06/2010, 16:36

Bão demais!

Nem sempre queremos usar imagens somente por causa das fontes não é mesmo!?

(y)
Iniciando na Ajuda On line...

Posted Image Meu post lhe ajudou? Reputar/votar é uma das formas de agradecer.

#4 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 20/09/2017, 17:15

Levitra Mecanismo De Accion online pharmacy Nexium 40 Mg Online Pharmacy Canadian Propecia Generica Italia Cialis Im Urlaub Kaufen cialis Accutane And Amoxicillin
Propecia Beneficio cialis Cialis Opiniones Usuarios
Elevage Levitra Propecia Herz
Propecia Depresion <a href=http://cialtobuy.com>cialis</a> Cialis Hemorroides
Propecia Guia cialis Bupropion Online Drugstore India
Dutasteride Dutagen Levitra Que Es Y Para Que Sirve
Cephalexin Dosage In Human Adults <a href=http://cialtobuy.com>cialis</a> Buy Cheap Kamagra Online

#5 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 02/10/2017, 07:50

Para Q Es El Medicamento Cephalexin Where To Buy Doryx Direct Pharmacy Cheapeast buy viagra online Products For Longer Lasting Erections Dutasteride Store Cialis Sans Ordonnance En Pharmacie
Cialis Usa Online Buy Amoxil Without Prescription Cialis 5mg Tablets viagra online Warfarin Amoxicillin Is Keflex A Type Of Penicillin Rite Aid Amoxicillin Price
Azitromicina For Sale Avanfil Finasteride Generique viagra online prescription Stendra Legally Los Angeles Cialis Spedizione 24 Ore
Cialis Prescrizione Pill Small Order Brand Cialis Online Cialis Fast Delivery viagra online pharmacy Leukemia By Antibiotic Amoxicillin Cialis Naturale In Farmacia Prix Boite Cytotec
Cost Of Viagra Vs Cialis levitra online overnight delivery Amoxicillin Order Online Uk Viagra 50 Mg Price Walmart
Generic Acticin With Free Shipping Overseas levitra online pharmacy How To Buy Isotretinoin Tablets Without Perscription Online Lasix No Prescription Needed
Levitra Generico Su Internet Priligy Pastillas Amoxcillin Online Pharmacy viagra online Can I Buy Plavix In Canada

#6 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 03/10/2017, 20:30

Come Comprare Cialis viagra Amoxicillin Side Afec Comprare Viagra Senza Ricetta Male Horse Tonic For Men
Cialis Im Ausland Cheap Accutane Online No Prescription Propecia Embarazo Este viagra online Pharmacy Online
Female Kamagra Review Buy Generic Tadalafil Online viagra online Online Pharmacy Propecia Renova
Clomid Glucophage Effets Secondaires Kamagra Uk Pay With Paypal Usos De Propecia viagra Levitra Drug Test Citalopram E Paroxetina
Kamagra Oral Jelly Gunstig Dapoxetina 2011 Cialis Tabletas 10 Mg viagra want to buy real isotretinoin Canada Companys That Sell Cialis Sildenafil Mastercard
Propecia Side Effects Allergy cialis price Comparateur Prix Viagra Cialis

#7 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 04/10/2017, 06:20

Viagra Generico Comprar viagra Canine Cephalexin Side Effects Abdominal Pain

#8 ArnoldToorb

ArnoldToorb

    Turista

  • Usuários
  • 32 posts
  • Sexo:Feminino
  • Localidade:Santa Rosa

Posted 04/10/2017, 19:12

Nike Air Jordan Eclipse Black Camo If you have troubles with piles or you wish to prevent them down the road, then it is advised you improve your consumption of dietary fiber. This should help you stay away from bowel problems and stressing when seeing the restroom, that are the key aspects that play a role in hemorrhoid growth. Stay away from excessive whole wheat dietary fiber nevertheless. It is actually very coarse and could make you uneasy. 8436-nike-presto-uk-sale.jpg Steer clear of solutions which can be failures. In certain discussion boards you are going to stumble upon dealers that will make an effort to rip-off you into making use of solutions they are fully aware are worthless. Constantly take time to examine any program you might be advised about well before getting it into position. You may not desire to generate losses since somebody was envious. 5708-mont-blanc-pens.jpg
Jordans 11 Low Bred
Unlock the window curtains and window shades during the exhibiting allowing sun light in the property. If the backyard landscapes is just not desirable, take into account retaining the window shades fairly shut down to get much less focus on it. Switch on all the lighting fixtures in your house so the home appearance dazzling and cheery instead of dark and dreary.

2492-adidas-football-cleats-animals.jpg

If you publish anything on your blog site or improve your site, write a Facebook or myspace submit right away. Maybe you ought to plan ahead and write your publish beforehand so that you will usually are not rushed to make it happen. Do not forget that folks subscribed for your Facebook blogposts being up to date about what you really are carrying out.

2513-adidas-nmd-white-r1.jpg
Nike Shox Black And Gold Womens Visualize getting all your thoughts disappear one after the other, before you are essentially much like a more than-sized newborn baby infant. Alzheimer's condition is a ailment that has an effect on a folks memory, and may be destructive towards the clinically diagnosed cherished-one's family members. This article will give your family some suggestions for dealing with the emotionally charged stress linked to this illness. 18657-nike-soccer-shoes.jpg Your realtor is nearly surely worried about allowing you to happy, but are also focused on generating all the probable on commission payment given the condition of the housing marketplace. Look online and do your own personal analysis, and if you locate a home that suits your skills on the lower end of your respective price range the agent doesn't give you, you no doubt know they aren't looking out for your welfare. 15525-nike-shox-nz-grey-green.jpg
Mizuno Wave Rider 13 Women's
Arranging an experienced assessment before you purchase a home will save you a lot of cash. An experienced inspector can discover defects around the house you wouldn't notice or can verify that it must be inside a top shape and worthy of getting. The examination report could also help you in determining the quantity you are likely to offer for the residence.

16188-kitten-heels-jimmy-choo.jpg

With all that you simply found out about nutrients and how to process healthy practices you should currently know of what you must do. Understand that this data by itself isn't everything you need to understand about nutrition, keep the view open up to learn more whenever you can and implement that for your current strategies, when you accomplish that you'll sense a change inside your body before very long.The Best Ways To Make The Aeroplane Vacation Go Efficiently

16239-ralph-lauren-factory-store-coupon-
Nike Gray
For those who have brief, chubby legs, stay away from putting on an outfit or skirt that comes to an end earlier mentioned the knees. That span will bring focus on the shortness of your respective thighs and legs. You need to, rather, dress in a gown length that is certainly lengthy, preferably right down to your legs. This will cover up the fact that your hip and legs are quick.

26688-tommy-hilfiger-polo-shirt-long-sle

It's a good idea to meet up with numerous a bankruptcy proceeding lawyers just before settling after a single. Virtually all them provide free preliminary consultation services. Check with to talk with the accredited lawyer rather than an agent, who is able to not offer you genuine authorized counsel. Interviewing multiple attorneys is a great way to find the best match.

16529-adidas-los-angeles-core-black-leat
Adidas Zx Flux Verve Purple
By no means buy a auto with out analyze traveling it first. That even involves completely new autos and pickups. Not merely would you like to ensure the vehicle is mechanically audio, you should also see how the vehicle fits you. Decide if the automobile "seems" appropriate. Some cars usually are not intended for taller men and women, as an example.

1087-adidas-stan-smith-2-brown-leather.j

Lessening the amount of sun exposure you get daily will help lessen your pimples troubles. Sun radiation from the direct sun light will redden and inflame your epidermis, and several acne prescription drugs really increase awareness towards the sun's sun rays. Apply a no-acnegenic sun screen lotion 20 mins before you go out in to the sun to guard the skin.

13028-timberland-boat-shoes-ebay.jpg
New Balance 990v3
Many people aren't informed how much their diet program affects their pores and skin as well as their acne. If you are getting breakouts try to stay away from fatty food products or stuff with caffeinated drinks such as espresso or soda. Also ensure you are maintaining correct quantities of nutritional supplements which means your skin area has the ability to address with it's organic defenses.

8108-new-balance-996-redwood-collection.

Try using some societal advertising sites to promote your posts, instead of just utilizing article publication sites. Try using web pages like Center Internet pages and Squidoo. Provided that you have nicely-articles, you may garner plenty of followers readily available web sites since they currently get great quantities of everyday traffic.

4046-balenciaga-arena-suede-black.jpg

#9 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 05/10/2017, 10:55

Generic Cialis Available In Canada Dapoxetina Interazioni viagra Where To Purchase Elocon Cheap Viagara 100 Mg Penicillin Or Amoxicillin On Line Doctors
Fedex Shipping Zentel For Sale viagra Amoxicillin Dose For Children Baclofene Nantes Cheap Nexium
Cialis Order viagra cialis Pharmacy Online 365 Comprar Levitra Professional
Acquistare Kamagra Grenoble buy viagra Sintomas Del Propecia

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 06/10/2017, 16:31

Generique Levitra Prix Discount Cephalexin Dog Reaction viagra online prescription Amoxicillin Abscess Dosage
Aktivitat Levitra Discount Shipped Ups Free Shipping Isotretinoin Isotrex Shelf Life Of Cephalexin online pharmacy Viagra Contra Dolor What Are The Reactions To Amoxicillin Yaz And Amoxicillin

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 14/10/2017, 23:29

Viagra Contre Remboursement viagra online pharmacy Amoxicillin For Severe Ear Infection Get Doctor To Prescribe Azithromycin
Generic Viagra Review levitra 40mg bulk prices Levothyroxine Tablets To Buy Wii Amoxicillin Clear Up My Gingervitis Vente Propecia Au Canada
Dealing With Anger Caused By Cymbalta Kamagra Acostumbramiento Kamagra Vendita In Svizzera cialis Prix Kamagra Marseille Affordable Cialis Without Prescription Cialis Acheter Online
Cialis E Interazioni Viagra Quelle Dose Cephalexin To Treat Bronchitis costco pharmacy prices levitra 52 Online Medicines
Effetti Cialis Viagra Online Empfehlung overnight delivery buy levitra online Buying Tadalafil Online Propecia Ivf
Amoxicillin Dosage Tooth Infection Pet Meds Amoxicillin No Prescription viagra prescription Buy Propanolol Online Australia Trouver Levitra En Belgique
El Viagra Cubano Clomid Price Walmart Viagra Decouverte viagra Comparatif Viagra Com Generic Levitra On Line Bentyl With Free Shipping In Internet Overseas Pharmacy
Super Kamagra Schweiz viagra Buy Cialis Black Online
Progesterone In Australia Luton 3 Dollars Viagra Cephalexin And Fibroma Cyst viagra Hiv And Cephalexin 500 Mg Cialis In Niederlande Purchase Cheap Priligy
Vente Ciprofloxacin Generique levitra sample online pharmacy Cuanto Cuesta Viagra En Una Farmacia For Sale Bentyl Dibent
Viagra Und Cialis Generika Priligy Sintomas Online Kamagra levitra online paypal Cheapest Viagra Anywhere Kamagra Oral Jelly Cape Town
Viagra Stl Buy Online Prezzi Kamagra In Francia cheap cialis Cialais Can I Purchase Provera Wakefield

#12 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 15/10/2017, 11:43

Cheap Suhagra Prix Du Viagra Pfizer En Neuilly buy viagra Kamagra Avis
Quinine El Viagra Ayuda A Durar Mas Amoxicillin Causing Yeast Infection cialis Doryx Microdox
Comprar Cialis En Farmacia Online viagra online pharmacy Viagra Vergleich Cialis Levitra
Cialis Vendita In Farmacia Viagra Nombre Farmaceutico Retin A What Strength Does Itcome It buy viagra Priligy Pomata

#13 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 20/10/2017, 23:52

Cephalexin To Treat Hidradenitis Suppurativa cialis No Rx Amoxicilina Purchase Overseas Tulsa Stendra Want To Buy Cialis Generika Kaufen Erfahrungen
Levitra Ou Acheter buy generic accutane uk buy roche accutane online uk buy viagra Cialis Avis Medical Cialis 20mg Erfahrungsberichte Worldwide Doryx With Next Day Delivery Amex
Baclofen Commander Glucosamine With Amoxicillin La Pillola Viagra viagra Proscar Pelo Propecia Mens Health Viagra Levitra Rezept
Z Pack Zithromax Viagra Barata Espana Medicamento Priligy 30 Mg viagra Amoxicillin Bloody Stool Prix Du Viagra France En Beziers Cephalexin Drug Interactions

#14 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 25/10/2017, 01:18

Buy Z Pack Over The Internet Levitra Vs Levitra Professional viagra Citalopram Online Amoxicillin Icd 9 Code

#15 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 26/10/2017, 16:58

Tetracycline Vs Amoxicillin viagra Cialis 20mg Levitra Comparaison
Acquista Viagra buy viagra Cialis Y Viagra
Acheter Cialis Prix viagra Medicamento Cialis Cialis Ou Viagra Sans Ordonnance Acheter Propecia Generique
Dose Amoxicillin Child Throat viagra Over The Counter Cymbalta
Cialis Viagra Cialis Granada Can Keflex Be Used For Uti viagra Levitra Crea Dipendenza Cephalexin And Indications And Uses
Kamagra China Effets Secondaires Cialis Levitra Venta Cialis Correo viagra Kamagra Duracion Misotrol No Prescription
Efecto Del Viagra Con Alcohol Zithromax Expiration Date Prezzi Viagra viagra Alli Acheter Idrocele Propecia
Generic Stendra For Sale viagra online pharmacy Viagra Espagne Vente Libre Potenzmittel Viagra Zink Acheter Viagra MontrСÐСâРÐЩal
Viagra Dose 200 Mg Propecia Worked For Me Thinning Hair Cephalexin Nursing Responsibilities viagra Generic Levitra Brand Name Cialis From Lilly Prix Viagra Pas Cher En Saint
Chaque Cachet Jaune Contient Soit 10mg Online Indian Viagra In Uae cialis online Generic Levitra Professional 20 Mg Cialis Comparatif Prix
Amoxicillin Insomnia Children Kamagra Bestellen Deutschland Kamagra Farmaco viagra online Gunstige Kamagra Viagra Farmacia Madrid Viagra Otras Pastillas
Proscar Shopping Amoxicillin Drug Effect viagra Clobetasol Vitiligo Shop Newport Canadian Cialis Prices Amoxicillin Cause Gas
Levitra Cheapest Price Kamagra En Jovenes How Long Does Keflex Last viagra Cialis Canada Order Fastesr Shipment




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq