Font – how hook on to the project

Font – how hook on to the project

BY 25 Jul 2017 Web Application Development

Here wrote that we can Use a custom font in wearable/mobile web applications.

 I tried and  got not any success

css

#content-text {
    font-weight: bold;
    font-size: 15em;
    font-family: “AlexiaFont”;
    src: url(‘AlexiaFont.ttf’)
}

 

index

 

<body>
    <div id=”main” class=”page”>
        <div class=”contents”>
            <span id=”content-text”>Basic</span>
        </div>
    </div>
</body>

“AlexiaFont” is in Root

 Can anyone  say how do it?

Written by