PSD to HTML 3.2) Typekit and Google Fonts
Previous: PSD to HTML 3.1) Creating a Style sheet
Transcription of PSD to HTML 3.2) Typekit and Google Fonts
now that we’ve gotten our CSS file started we appoint some very very basic styles to her text we’ve given at the start great color and the census arafat aerial fun I want to talk a little bit more about the text now first thing I want to do just a very quick cleanup task is looking at their paragraph year some of the text seems a little cluttered and little push together and it’s just a little bit money if your letters are too close together some input just the tiniest bit of letter spacing in between our characters so I’m gonna go to text me here to our site done CSS file an ego and point out that I moved everything into a new folders all the changes we make in this lesson will be saved in the site 07 folder and for the body of our document inside the body ruled that we’ve already created here we’ve set the font size and also against will put a little bit of letter spacing in there so we’re going to use the letter spacing property and I’m gonna send it to zero point to pixels some very very small number let’s save that come back to chrome in refresh your page and now that gives our text a little bit of breathing room as you can see it’s not a huge difference but it does uncluttered the text ever so slightly and felt a little bit better so the next thing I want to talk about if we jump into Photoshop is our HeaderText I’m gonna show you two different ways to find the part that you’re looking for we’re going to use Adobe’s tight kid and then we’re going to take a look at Google Finance now the typed it is just for demonstration purposes the fun that we see appear in the title is a type kids want and i’ve seen that far to our desktop and if you want to know how to do that it was covered in the original responsive portfolio design course as you can check that out there I think I’ve seen that particular fun with my desktop so that I could use it in Photoshop and now and take a look at how we can sync that fund with our website know if you want to sync it to your local computer it’s a little bit trickier because you need to have a web server such as Apache or something like that set up on your local machine and that’s a little bit beyond the scope of what we’re gonna talk about but I still want to show you how to use type kid to tie your font to a specific website so I’m going to jump back into your browser here and I’m gonna come up here to the top two are creative cloud application and if you’re using the most recent versions of Photoshop if you using the Creative Cloud version then you should have access to this creative cloud application here and you’ll notice there is a cab here for funds to the fun stabbed and we can see this funny here over an informal PE is currently synced with my desktop however I want to sync to my website so that I can actually upload this to my website and you that font on my website so I’m gonna go to manage funds and that will open up and obese type kid website and we can see here that we have this alvorada informal PE font seemed to our desktop then click on that far to get more information and we can see the different styles for funds we can take a look at different specimens take testers etcetera but what I want to do is only click over here and you’ll see first of all that this particular fund is available for web use and desktop use and it’s only been seen to my desktop I wanna talk now about how to seek it for web use for how to use it in your own website will click over here are news funds and we get this popup and I’m gonna click over here on web once we click on that it tells us that we need to apply this fund to aid kit so I’m gonna create click on this link here to create a new kid and this will give us another popup window and here we type in the name of the site so maybe something like my design portfolio and the new type your domain here so maybe my design portfolio.com that might be an actual website I haven’t checked out but let’s pretend like it’s not let’s pretend like we own this particular website and and we want to we want to use this phone on our website that’s how we would do it now if you also heading web server on your local machine and you want to test this on your local machine could also take common space localhost and then we can use it on our local machine and on our website but again we’re not going to walk through what it takes to install a web server our own machine because again that’s beyond the scope of this course however him just gonna put localhost here just that we can see what our next options are so disable this badge here and click on Continue will take us to the next page and this will give us our embed codes so first of all we need to install the Java Script by taking this code here and then commenced see on a macro control see on a PC to copy that code and then we’ll jump into HTML page index HTML and inside the head of her body and the head of our document and students of Barstow seats here I’m gonna paste that script code so that’s pulling you know the JavaScript that we need we’re not quite done with him back into the website and click on Continue and this takes us to our type Kidd editor in the type it and here we have few options we can choose which weights and styles we want to include for this particular project using regular and bold we can choose which characters we want to support as well as which selectors we want to support there’s also a nice little link here for using funds in CSS and if we click on that exists a pop-up which tells us exactly how to use it so we would basically set our fun family property equal to alvorada informal P so we can just copy this value here and that’s not copy to our clipboard in anywhere we want to use it we just set a fun family property to that values let’s close this and I’m gonna click on published keep in mind that none of this will work until you click on publish once you click on publish you’ll be able to use those finance on your local host or on whatever website you entered in when you are entering in your settings now again we’re not going to see this working on our local computer unless we have a web server installed and running and we’re not really gonna get into that i just want to see the code that you would need to make that work so now we’ve done that we publish it would close out take it and go into our website start up our web server and then we could go into text me for example and save our index HTML file and then in our CSS would come down here and for our would say all of our heading tags each one each to all the way up to each six we would set our fun family property equal to pace that they’re also gonna take comic sans serif so that we have a backup in case for some reason or take it fun isn’t working and that’s all you need so we can see that and then you would jump back into your browser and refresh and as you can see it’s not working here because we don’t have a web server setup we don’t have something like a patchy set up on our system so we’re not going to see that works here but again I just wanted to show you how that works in case you wanted to install a web server on your own system either way this is still the code you would use here and here if you wanted to publish this to your own website you wouldn’t have to worry about installing your own web server if you were just gonna push it up to your website intestine from there in that case you would just again when you’re going through all of the type kit settings and entering in all your settings you would enter in the URL for your website to basically look it up so that your funds would work on your website but again since reduced testing on the local machine here and we’re not using a web server when I’m going to do something to use East similar fund that we can find in Google files which you are free to use on your own computer or on the web because you can actually download these files to your system so what I’m going to do is to search for fun called my laundry is Sams and it’s this one right here so with this particular font there’s a few different samples of it I’m gonna come down here and we have a few items here for in the second i cant years for quickies and click on that and that will give us some options so I’m gonna check normal in bold in case we decide to use ball scroll down to the bottom and this is the code we’re gonna add to our website so we can either put a link tag in the head of our document or we can use it at import statement inner CSS file and this is the 1 I’m gonna use so I like this at import statement year and copy it and then we’ll jump back into our website will go to our site does CSS file it up here at the very top we’re gonna pace that import statement which will allow us to use this fight here now how do we include that fun dinner page or first of all let me go ahead and comment about this line here because this particular font is not gonna work on a local host I just want that code there so that you can use it if you want so we also need to comment out or scripts here to put in opening comet tagged up here and after the script for a closing comment XO these are comment it out and will no longer be used it will be ignored by the browser but again only that could be there for you in case you want to use it for your own websites all say that go back to our site at CSS file and see that if we go back to Google funds and scroll down a little bit we can see a piece of code here for how to integrate it into her CSS and just copy that and jump back into our file and paste it and this is the phone working to use for all of our heading tags which one all the way up to age 60 now saver CSS file jumped back into a browser or go back to our web page refresh your page and now all of our heading finance have this new frontal plane to it over heading tags excuse me and that’s basically what we’re going to be using for the rest of this course will be using aerial for our paragraphs and links and things like that and for all over each tags are each element’s we’re going to be using this alegria fun so thank you for watching and I’ll see you in the next video
PSD to HTML 3.2) Typekit and Google Fonts
Reviewed by Tayyab Saqlain Zakki
on
23:47
Rating:
Reviewed by Tayyab Saqlain Zakki
on
23:47
Rating:

No comments: