Skip to main content

How To Embedded Font in css ( custom font )

In website font is most issues to design the site so, here I am show how to embedded you custom font output show in websites.
In css font embed to use @font-face attribute Given Below Example :

Here I am use php script you can select html file also but some time it problem to embedded than you use html 5 format to html file.
My font is store in font directory and my css file store in css directory.

Now Html File is Below :

<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css"/>

<div class="demo-header">
<div class="title" align="center">My Text Is Here</div>

Css File is Below :

@font-face {

   /* font-family specify name of font that can use is css file */

   font-family: 'testMY';

   /* here you can specify font attribute than it apply automatically when you apply this font */

    font-style: normal;
   font-weight: 400;

   /* url is given that way and format must give */

   src: url("../font/Barbarian NS.ttf");


   box-shadow:0px 0px 3px 2px #999;
.demo-header .title
   font-family: testMY, Verdana, Arial, Helvetica, sans-serif;
   text-shadow: 0px 0px 2px #999999;

So, This way to Embed font. If you can have problem than give commet.
Post a Comment

Popular posts from this blog

My new Jquery Plugin name is krDailog

This is my new jquery plugin i hope this is use full to you if you require this plugin than contact me

    krDailog Version 1.0
    Author: krButani

Require to use this function
    - bootstrap.css new version
    - bootstrap.js new version
    - jquery.js new version
    - jquery-ui.js new version
    - glyphicons font by bootstrap

# you can use new version of all and also use min file also

# include file first this way

    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/krDailog.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>

Intent demo pass with text demo in Android

First Create Two acitvity layout file name firstscreen.xml second_screen.xml java filename SecondScreen.javafirstscreen.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android=""

android:text="Goto Second"