Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css font face

@font-face {
  // Defining what the font will be called
  font-family: thisSpecialFont;
  // Linking to the font file
  src: url(linkToFontFile.woff);
}
body {
  font-family: thisSpecialFont;
}
Comment

font face css

@font-face {
font-family: 'PacificoRegular';
src: url('Pacifico-webfont.eot');
src: url('Pacifico-webfont.eot?#iefix') format('embedded-opentype'),
url('Pacifico-webfont.woff') format('woff'),
url('Pacifico-webfont.ttf') format('truetype'),
url('Pacifico-webfont.svg#PacificoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
Comment

font face

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}
Comment

font face

@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot') format('eot'),
       url('webfont.ttf') format('truetype'),
       url('webfont.woff2') format('woff2'),
       url('webfont.woff') format('woff');
}
Comment

@font-face

@font-face {
 font-family: "The name of your font for your file";
 src: url("The link to your .ttf or .otf file");
}
Comment

@font-face

/*set the font name and the url path*/
@font-face {
  font-family: customFontName;
  src: url(path/to/font/sansation_light.woff);
}

/*add the new font to an element or class, etc*/
p {
 font-family: customFontName; 
}

.myClass{
  font-family: customFontName;
}
Comment

PREVIOUS NEXT
Code Example
Css :: sass vs scss 
Css :: object-position 
Css :: css image size scale to fit 
Css :: better transition timing functions 
Css :: add image under header html 
Css :: transform multiple css 
Css :: h2 in px css 
Css :: flex align self 
Css :: css hsla 
Css :: css combinators 
Css :: css erase text 
Css :: outline bottom css 
Css :: margin css 
Css :: css cell spacing 
Css :: css curved border 
Css :: width fit content 
Css :: install wrangler 
Css :: import global variables scss angular 
Css :: Shadow On left & right side 
Css :: css td vertical align 
Css :: css math functions 
Css :: bulma uppercase 
Css :: brightness css 
Css :: how to center image in css 
Css :: scss media query 
Css :: css hover affect other item 
Css :: Load hidden image to HTML 
Css :: css clip 
Css :: css transition on click 
Css :: hiding text outside of border css 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =