How to Replace the Font File (*.ttf) for HTML Printing Function

From wizarPOS
Revision as of 07:07, 8 June 2020 by Mahong (talk | contribs) (Created page with "# Copy font file to assets folder # The html content like follows: <syntaxhighlight lang="java"> <!DOCTYPE html> <html> <head> <style type="text/css"> @font-face {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  1. Copy font file to assets folder
  2. The html content like follows:
<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        @font-face {
            font-family:TestFont;
            src:url('file:///android_asset/ARIALNB.TTF');
        }
        #div1 {
            font-family:TestFont;
            font-size  :30px;
        }
    </style>
</head>
<body>
<!--add picture-->
<!--<img src="file:///android_asset/cloudpos.png">-->
<h2>For example,custom font:</h2>
<div id="div1">
    We use smart solution to
    <br/>
    connect business and
    <br/>
    customers!
    <br/>
    What We Do?
    <br/>
    wizarPOS
    Connect Business
    and Customers
    With Innovations
    <br/>
    WizarPOS is dedicated to developing
    secure, trusted, affordable and intelligent
    product platform to enable innovations
    in the business world.
</div>
It has many functions.Waiting for you to find out!
</body>
</html>