1 / 6

Textlayout og Webfonte

Textlayout og Webfonte. Dag 4. Udgangspunktet – font-family selectoren. font- family: Georgia; font-family: "Times New Roman" ; font-family : " Times New Roman" , Georgia, serif; http://www.w3schools.com/cssref/ css_websafe_fonts.asp. f ont selectoren – alle på en gang. p {

skule
Download Presentation

Textlayout og Webfonte

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TextlayoutogWebfonte Dag 4

  2. Udgangspunktet – font-family selectoren font-family: Georgia; font-family: "Times New Roman"; font-family: "Times New Roman", Georgia, serif; http://www.w3schools.com/cssref/css_websafe_fonts.asp

  3. font selectoren – allepå en gang p { font-family: ’Georgia’ serif; font-weight: bold; font-style: italic; font-size: 30 px; } p{font: italic bold 30px Georgia, serif;}

  4. Webfonte – googlefonts • Gåindpåhttp://www.google.com/fonts/og find en font du vilbruge. • Følg3-trins vejledningenpåsiden: choose – review – use • Indsætlinkettilgooglefonteni head delenafdit html dokument. Detkunnef.eks. se sådanud: • < link href='http://fonts.googleapis.com/css?family=Didact+Gothic&subset=latin,latin-ext' rel='stylesheet' type='text/css’> • Benytherefterfontensom du plejericss. • Se eksempel her: http://ammkckea.keaweb.dk/Dag4/webfonts-googlefonts.html

  5. Webfonte – font-face • For at sikre optimal support iallebrowsereskal man bruge 4 formater: .eot, .ttf, .woff, .svg • Find en side hvor du kanhente de forskelligeformateraf en fil. Gåeksempelvisindpåhttp://www.fontsquirrel.com/ • Find en font. Klikdig indpå den ønskede font-side oglæs dig tilhvordan man henterfonten. Der kanværeforskelligefremgangsmåder alt efterhvilken font. • Download webfontmappenog gem den sammen med din html. • Åbnmappenog find stylesheetet. Kopier@font-face deklarationenfrastylesheetetogsætdeklarationenindiditegetstylesheet. Den sersådanud: Se næste side…

  6. Webfonte – font-face @font-face { font-family: 'CartoGothicStdBook';src: url('CartoGothicStd-Book-webfont.eot');src: url('CartoGothicStd-Book-webfont.eot?#iefix') format('embedded- opentype'),url('CartoGothicStd-Book-webfont.woff') format('woff'),url('CartoGothicStd-Book-webfont.ttf') format('truetype'),url('CartoGothicStd-Book-webfont.svg#CartoGothicStdBook') format('svg'); font-weight: normal; font-style: normal;} Benytherefterfontensom du plejericss. Husk at sørge for at stientilfontenerkorrekt. Se eksempel her: http://ammkckea.keaweb.dk/Dag4/webfonts-fontface.html

More Related