Step #1 : Download the font
Find the custom font that you want to add to your website and download it. The file extension should be either .ttf or .svg or .otf.
Find fonts you can download for free at: fonts2u, fontpro
Step #2 : Generate formats for cross-browsing
Different browsers support different font formats, to add a custom font to a website and to have it correctly displayed on every browser, you have to generate several formats for your font.
For example:
Internet Explorer (all versions) – .EOT;
Safari (3.2+) – .TTF / .OTF;
iPhone (3.1) – .SVG;
Chrome (all versions) – .SVG (.TTF/.OTF added 25th Jan 2010);
Firefox (3.5+) – .TTF/.OTF (.WOFF added 3.6);
Opera (10+) – .TTF/.OTF.
To get all the file extensions, we can use Font Face generator.
Link: Font Face Generator
Step #3 : Upload font files on your website
After generating all files using FTP or file manager to upload all fonts on your website; inside the styling folder /css, create a folder and name it fonts.
Step #4 : Add your custom font files into CSS
To add custom fonts to the website using @font-face at-rule (one @font-face for each font family), just add the following code at the top of the main styling page, or whichever css file that will use the font-face, usually it is saved as style.css
The code has src attribute and its two values, the url which accepts a local path to the font file and the second value is the format which accepts the extension of the file, e.g format(“svg”).
@font-face {
font-family: “Harabara Bold”;
src: url(“css/fonts/Harabara.eot”); // the local path to the font
src:
url(“css/fonts/Harabara.woff”) format(“woff”),
url(“css/fonts/Harabara.otf”) format(“opentype”),
url(“css/fonts/Harabara.svg#filename”) format(“svg”);
}
Step #5 : Start working
Now the custom font is added to the website and ready to be used like so :
h1 {
font-family: ‘Harabara Bold’; // like this
font-weight:normal;
font-style:normal;
}
We are done with @font-face, but if you wonder what’s the deal with the @ at the beginning of the word ‘font-face’ – read on.
The @ is there because @font-face is a CSS at-rule.
An at-rule is a CSS statement beginning with an at sign, ‘@
‘ (U+0040 COMMERCIAL AT
), followed by an identifier and includes everything up to the next semi-colon, ‘;
‘ (U+003B SEMICOLON
), or the next CSS block, whichever comes first.
There are several at-rules, designated by their identifiers, each with a different syntax:
@charset
— Defines the character set used by the style sheet.
@import
— Tells the CSS engine to include an external style sheet.
@namespace
— Tells the CSS engine that all its content must be considered prefixed with an XML namespace.
Nested at-rules
A subset of nested statements, which can be used as a statement of a style sheet as well as inside of conditional group rules:
@media
— A conditional group rule that will apply its content if the device meets the criteria of the condition defined using a media query.
@supports
— A conditional group rule that will apply its content if the browser meets the criteria of the given condition.
@document
— A conditional group rule that will apply its content if the document in which the style sheet is applied meets the criteria of the given condition. (deferred to Level 4 of CSS Spec)
@page
— Describes the aspect of layout changes that will be applied when printing the document.
@font-face
— Describes the aspect of an external font to be downloaded.
@keyframes
— Describes the aspect of intermediate steps in a CSS animation sequence.
@viewport
— Describes the aspects of the viewport for small screen devices. (currently at the Working Draft stage)
@counter-style
— Defines specific counter styles that are not part of the predefined set of styles. (at the Candidate Recommendation stage, but only implemented in Gecko as of writing)
@font-feature-values
(plus @swash
, @ornaments
, @annotation
, @stylistic
, @styleset
and @character-variant
)
— Define common names in font-variant-alternates
for feature activated differently in OpenType. (at the Candidate Recommendation stage, but only implemented in Gecko as of writing)
prospecto cialis 10 mg accuttincant buy cialis online reviews Mentitunty cuanto dura el efecto del viagra
Kamagra Vente 120 Mg accuttincant buying cialis online reviews Mentitunty Cialis Per Durata
Pretty! This has been an extremely wonderful article. Thank you for supplying this information. Clementine Hale Dorman
I like it when folks get together and share thoughts. Great website, keep it up. Ansley Morie Baker
If you wish for to get much from this article then you have to apply these methods to your won webpage. Nichol Taber Sella
We came across a cool internet site that you just may enjoy. Take a appear should you want. Dyanna Filberte Gabriel
Some truly interesting details you have written. Aided me a lot, just what I was searching for :D. Aridatha Neron Reedy
Download this e-guide to be taught methods that can make your deal with coaching more effective. Roda Wallas Angelis
Say, you got a nice article post. Really thank you! Want more. Brynna Towney Durham
I visited several web sites however the audio feature for audio songs present at this web site is in fact wonderful. Laverna Rayner Ames
Really informative blog article. Really looking forward to read more. Really Great. Gilbertina Culley Lai
Wow! In the end I got a web site from where I be able to genuinely take valuable facts regarding my study and knowledge. Mireielle Gawen Fablan
This article is genuinely a good one it helps new web people, who are wishing in favor of blogging. Elvira Hubie Konstance
There is certainly a great deal to learn about this issue. I love all of the points you made. Madge Nikki Bea
What a data of un-ambiguity and preserveness of valuable know-how concerning unpredicted feelings. Mozelle Otis Woodhouse
Regards for helping out, fantastic information. Benetta Harald Paviour
I would like to to many thanks for this good read!!
I definitely loved every small amount of it. I actually have got
you book-marked to look at new things you post
Feel free to surf to my webpage – BradTMarolda
I am sure this paragraph has touched all the internet viewers, its really really good post on building up new web site. Veradis Shelton Farrison
Hello, after reading this awesome paragraph i am too cheerful to share my knowledge here with colleagues. Marylynne Noble Knighton
As the admin of this web page is working, no uncertainty very quickly it will be well-known, due to its quality contents.| Roby Vincents Scrogan
king pharmacy Super ED Trial Pack canadian pharmacy 365
legit online pharmacy viagra worldwide pharmacy online mexico
medicine online order men’s health pharmacy online no prescription
what makes Fioricet helps in dealing with anxiety and stress Opalina Bondon Beebe
rx online weight loss canadian prescriptions
I was curious if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or 2 pictures. Maybe you could space it out better? Frannie Ruddy Aurora
canadian pharmacy without prescription viagra from canada erectile dysfunction medications
den sjokoladeglasuren, blir det veldig mye med 1 pk Melis, at det blir for mye for kun muffins?? Regan Kerby Fidelio
just beneath, are numerous totally not connected internet sites to ours, however, they may be certainly really worth going over Jennie Andrus Conrado
A a imprint at a occasion down from line formal, apply to mavin clothing is tranquillizing deft, dyed in the wool, and set, if a elegant more forth when it comes to sladen.casseo.se/smukt-hus/1960-tjstil.php color or pattern. Asseveration businesslike is also again called unwritten business. Obviate to present a ceremonious alertness procedure, injecting oneness into your outfits with your accessories and color choices. Ivett Craggie Kayla
I have been checking out a few of your articles and i must say clever stuff. I will surely bookmark your blog. Gabrielle Fonsie Julis
You have made some good points there. I checked on the net for more information about the issue and found most people will go along with your views on this site. Carley Lyman Uno
After all, we should remember compellingly reintermediate mission-critical potentialities whereas cross functional scenarios. Phosfluorescently re-engineer distributed processes without standardized supply chains. Quickly initiate efficient initiatives without wireless web services. Interactively underwhelm turnkey initiatives before high-payoff relationships. Holisticly restore superior interfaces before flexible technology. Berta Cletis Kaine
I love your site.. good colors & theme. Did you design this site yourself or would you hire someone to make it
happen for you? Plz respond as I’m looking to create my very own blog and would like to discover where u got this from.
thanks
Also visit my webpage :: WyattELavery
canadian pharmacy viagra why dose viagra cost so fucking much viagra online order australia
ordering viagra 100 mg cialis and viagra mix generic viagra online to usa
If you are going for finest contents like I do, simply go to see this site every day since it provides quality contents, thanks Isadora Wells Stoecker
Thanks so much for this list! Definitely want to look into some of these resources. Donetta Jude Connell
viagra online canadian pharmacy ordering prescriptions from canada legally prescription cost comparison
Once I originally commented I clicked the -Notify me when new feedback are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any method you may remove me from that service? Thanks! Eleonore Arte Dunaville
Hey there. I discovered your website by means of Google even as looking for a related subject, your site came up. It looks great. I have bookmarked it in my google bookmarks to visit then. Kelsy Raviv Roselia
Est enim effectrix multarum et magnarum voluptatum. Si alia sentit, inquam, alia loquitur, numquam intellegam quid sentiat; Et nunc quidem quod eam tuetur, ut de vite potissimum loquar, est id extrinsecus; Ut optime, secundum naturam affectum esse possit. Cory Maurie Feucht
Good post. I absolutely love this website. Thanks! Natalina Vaclav Idalia
It is actually a great and helpful piece of information. I am satisfied that you shared this helpful info with us. Please keep us up to date like this. Thanks for sharing. Tessy Agustin Huoh
cialis in uk generic cialis price buy cialis ireland
payday loan direct lender no teletrack no credit check no fax payday loans cash advance apr chase
cialis i zdravlje cialis side effects bloodshot eyes craigslist cialis
Hello my family member! I wish to say that this post is awesome, nice written and come with approximately all vital infos. I would like to see more posts like this . Jorry Jules Meave
cialis vs oxido nitrico pros and cons of daily cialis cialis forum francais
merchant category cash advances-financial inst manual cash disbursements cash loans 800 cash advance my credit card
no money loan payday loan 0 apr loan money bdo
Thanks for your suggestions. One thing I’ve noticed is the fact that banks as well as financial institutions really know the spending routines of consumers as well as understand that many people max out their credit cards around the vacations. They sensibly take advantage of this particular fact and start flooding your own inbox as well as snail-mail box along with hundreds of 0 APR credit card offers right after the holiday season ends. Knowing that if you’re like 98% of the American public, you’ll leap at the chance to consolidate credit debt and transfer balances to 0 annual percentage rates credit cards. cccccei https://headachemedi.com – Headache drugs over the counter
Thanks for your thoughts. One thing I’ve got noticed is the fact banks in addition to financial institutions understand the spending behaviors of consumers and as well understand that the majority of people max outside their cards around the breaks. They smartly take advantage of that fact and then start flooding ones inbox in addition to snail-mail box having hundreds of no interest APR credit cards offers shortly after the holiday season closes. Knowing that for anyone who is like 98% in the American general public, you’ll soar at the one opportunity to consolidate consumer credit card debt and switch balances towards 0 interest rate credit cards. nmmlkno https://headachemedi.com – best headache med
Thanks for your suggestions. One thing I’ve noticed is the fact that banks as well as financial institutions really know the spending routines of consumers as well as understand that many people max away their own credit cards around the vacations. They sensibly take advantage of this particular fact and begin flooding your own inbox as well as snail-mail box along with hundreds of Zero APR credit card offers right after the holiday season finishes. Knowing that if you’re like 98% of all American open public, you’ll leap at the opportunity to consolidate credit debt and move balances to 0 annual percentage rates credit cards. eeeedgj https://thyroidmedi.com – best thyroid meds
Thanks for your ideas. One thing I have noticed is that banks and financial institutions know the spending habits of consumers and understand that most people max out their credit cards around the holidays. They wisely take advantage of this fact and start flooding your inbox and snail-mail box with hundreds of 0 APR credit card offers soon after the holiday season ends. Knowing that if you are like 98% of the American public, you’ll jump at the chance to consolidate credit card debt and transfer balances to 0 APR credit cards. bbbbbba https://thyroidmedi.com – thyroid pain medicine
Thanks for your concepts. One thing we’ve noticed is banks along with financial institutions are aware of the spending practices of consumers while also understand that most of the people max out there their real credit cards around the getaways. They properly take advantage of this specific fact and commence flooding your current inbox along with snail-mail box using hundreds of no-interest APR card offers just after the holiday season comes to an end. Knowing that should you be like 98% of American community, you’ll rush at the possiblity to consolidate card debt and shift balances for 0 apr interest rates credit cards. jiiihkm https://stomachmedi.com – stomach threatment
I want to thank you for the efforts you’ve place in writing this website.
I am just hoping to view the identical high-grade articles or content of your stuff in the foreseeable future at the same time.
Actually, your creative writing abilities has encouraged me to get my unique
website now 😉
Feel free to surf to my page :: notebook camel
Thanks for your concepts. One thing we’ve noticed is banks along with financial institutions are aware of the spending practices of consumers while also understand that most of the people max out there their real credit cards around the getaways. They properly take advantage of this specific fact and commence flooding your current inbox along with snail-mail box using hundreds of no-interest APR card offers just after the holiday season comes to an end. Knowing that should you be like 98% of American community, you’ll rush at the possiblity to consolidate card debt and shift balances for 0 apr interest rates credit cards. ihhhgjl https://pancreasmedi.com – generic stomach medicine
Thanks for your suggestions. One thing I’ve noticed is the fact that banks as well as financial institutions really know the spending routines of consumers as well as understand that many people max away their own credit cards around the vacations. They sensibly take advantage of this particular fact and begin flooding your own inbox as well as snail-mail box along with hundreds of Zero APR credit card offers right after the holiday season finishes. Knowing that if you’re like 98% of all American open public, you’ll leap at the opportunity to consolidate credit debt and move balances to 0 annual percentage rates credit cards. eeeddfj https://pancreasmedi.com – best stomach meds
viagra online no prescription canada where can i purchase viagra over the counter viagra for women pink pill
payday loan pomona ca leftover money from home loan payday loan act ontario 2008
generic cialis with dapoxetine low price cialis cialis for sale brand
As a Newbie, I am continuously exploring online for articles that can be of assistance to me. Thank you
As a Newbie, I am continuously exploring online for articles that can be of assistance to me. Thank you
As a Newbie, I am permanently browsing online for articles that can benefit me. Thank you
As a Newbie, I am continuously exploring online for articles that can be of assistance to me. Thank you
As a Newbie, I am permanently exploring online for articles that can benefit me. Thank you
Very high quality article
free robux
Have you ever considered about including a little bit more than just your articles?
I mean, what you say is fundamental and everything. Nevertheless just imagine if you added
some great pictures or video clips to give your posts more,
“pop”! Your content is excellent but with images and videos, this site could certainly be one of the best in its field.
Excellent blog!
I like the valuable information you provide in your articles.
I will bookmark your blog and check again here frequently.
I am quite certain I will learn lots of new stuff right here!
Best of luck for the next!
qbvu3 z8e7v nfar
I have to many thanks for the efforts you’ve devote scripting this site.
I’m hoping to look at the same high-grade content on your part down the road also.
In fact, your creative writing abilities has motivated me to
have my own site now 😉
my homepage … zippered wallet
viagra versus cialis how to get viagra without a prescription how to use viagra for best results
tadalafil max dose: http://tadalafilonline20.com/ buy tadalafil us
generic pills: https://genericwdp.com/ drugs without doctor script
medications without a doctor’s prescription buy prescription drugs
buy medication without an rx generic pills without a doctor prescription
viagra from canada viagra cost
viagra from india
ivermectin demodex stromectol online canada ivermectin for fleas and ticks why use equimax ivermectin for horses
viagra without a doctor prescription usa viagra from india
viagra cost
albuterol interactions where can you buy albuterol does albuterol help with coronavirus how long does albuterol last in your system
best place to buy generic viagra online viagra without a doctor prescription usa
viagra cost
jr enterprises ivermectin ivermectin where to buy ivermectin for dogs 100 lbs how long does it take for ivermectin toget out of dog system
amoxicillin cold sores amoxil 400 mg amoxicillin 875 mg sinus infection can you drink alcohol when taking amoxicillin
viagra online usa viagra without a doctor prescription
viagra from india
advair vs ventolin buy ventolin tablets uk are proair and ventolin the same thing who makes ventolin hfa
furosemide for dogs 90 furosemide side effects of lasix in dogs a nurse is planning discharge teaching for a client who has a prescription for furosemide
antibiotic amoxicillin buy amoxicillin online uk over the counter amoxicillin substitute can you drink when taking amoxicillin
loop diuretics furosemide cheap lasix 40 mg does furosemide cause erectile dysfunction why is my lasix not working
azithromycin eye drops zithromax price singapore is azithromycin used to treat chlamydia how much azithromycin is needed to cure chlamydia
purchase generic valtrex online valtrex 500mg coupon
zithromax coupon azithromycin 10 pills amoxicillin vs zithromax for bronchitis how to get azithromycin dose for chlamydia
order viagra online https://viagrapills100.com/ viagra online usa
clomid clomiphene citrate clomid generic in canada where to buy clomid pct how late can you ovulate on clomid
doxycycline high doxycycline 100mg price 1mg can doxycycline cause mood swings how to get rid of doxycycline headache
Hey there! This post couldn’t be written any better! Reading through this post reminds me of my good old
room mate! He always kept chatting about this. I will forward this write-up to him.
Pretty sure he will have a good read. Many thanks for sharing!
viagra without a doctor prescription https://viagrapills100.com/ how much is viagra
prednisolone injections prednisolone purchase uk prednisone and prednisolone are they the same which is safer prednisone or prednisolone
topical doxycycline where can i buy doxycycline online does doxycycline treat respiratory infections doxycycline twice a day how far apart
best place to buy generic viagra online https://viagrapills100.com/ where can i buy viagra over the counter
clomid over 40 cheap clomid canada how many cycles of clomid when to start clomid pct
prednisolone metabolism 120mg prednisolone prednisolone sod phos 15mg 5ml sol dosage what is the difference between nevanac & prednisolone acetate
dapoxetine tablets online where to buy priligy dapoxetine prescription on united states where i can find priligy in columbia sc
cheap ed pills from canada cheap ed pills from india
erection pills
dapoxetine full stomach dapoxetine 30 mg tablet priligy buy online usa where to buy dapoxetine
diflucan and doxycycline buy diflucan without a prescription diflucan treatment for oral thrush how long does diflucan take to work
erectile dysfunction drug buy ed pills from canada
buy ed drugs
synthroid iron synthroid 150 pill can i take tylenol with synthroid why is synthroid is so offten prescribed
diflucan and nursing diflucan 150 cost how do you pronounce diflucan where can you buy diflucan over the counter
synthroid 150 mg generic for synthroid best time of day to take synthroid what is generic synthroid
http://prednisonest.com/# how much is prednisone 10 mg
http://gabapentinst.com/# neurontin prescription cost
Muchas gracias. ?Como puedo iniciar sesion?
http://hydroxychloroquinest.com/# plaquenil 400
propecia rezeptfrei buy finasteride propecia is a shit drug how did propecia die
Very quickly this website will be famous amid all blogging and site-building visitors, due to it’s fastidious articles
Normally I do not learn article on blogs, but I would like to say that this write-up very forced me to take a look
at and do it! Your writing style has been amazed me.
Thank you, quite great article.
These are really fantastic ideas in concerning blogging.
You have touched some nice things here. Any way keep up
wrinting.
Wow, amazing blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your site is magnificent, let alone the
content!
hello there and thank you for your information – I have certainly
picked up anything new from right here. I did however expertise some technical
issues using this website, since I experienced
to reload the web site lots of times previous to I could get it to load
correctly. I had been wondering if your web hosting is
OK? Not that I am complaining, but sluggish loading instances times will often affect your
placement in google and can damage your high quality score if
ads and marketing with Adwords. Anyway I am adding
this RSS to my email and can look out for a lot more of your respective exciting content.
Ensure that you update this again very soon.
generic propecia treatment generic propecia online pharmacy natural dht blockers vs propecia how much is generic propecia
cefixime capsules: buy augmentin
buy biaxin online
price of prednisolone prednisolone tablet cost prednisolone 15mg/5ml soln prednisolone gatifloxacin nepafenac ophthalmic drops what do they do
I couldn’t resist commenting. Exceptionally well written!
bactrim online: order tetracycline online
erythromycin tablets
magnesium and metformin metformin online prescription side effects of metformin xr when should metformin be stopped
neurontin generic cost purchase neurontin does neurontin help you sleep how long does it take for gabapentin to wear off
neurontin uso gabapentin 400 mg tablet can neurontin be taken with carvedilol how often to take gabapentin
usa pharmacy india: prescriptions from india order medications online from india
diarrhea with metformin order metformin how long before metformin takes effect when should you take metformin
order prescription drugs from india: best online international pharmacies india best india pharmacy
paxil grapefruit paxil prices usa paxil reviews for anxiety and depression what is the same antidepreeant as paxil
diet pills paxil buy paroxetine 20 mg online uk alternatives to paxil without weight gain how long do i need to be off of buspar before taking paxil
The English are a nation of ship keepers.
cyp2d6 and plaquenil buy zentiva hydroxychloroquine ophthalmologic exam for plaquenil use plaquenil side effects when stopping
ed pills for sale: ed meds over the counter ed medication
male erectile pills: cialis pills erectile dysfunction pills
buy viagra online cheap non prescription viagra no prescription viagra