PHP - HTML barcode using code128(type b), with use of google fonts - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Wednesday, March 22, 2023

PHP - HTML barcode using code128(type b), with use of google fonts

In my job, the manager requested for html page (in php) that will create html barcode(not image, not drawing, without use of TCPDF classes) - and I just can't understand how it's work. I took sample from the interent , tried to run it but there is no barcode shown. this is my example code:

Here is my code:

<html>
 <head>
   <link href="https://fonts.googleapis.com/css?family=Libre+Barcode+128+Text" rel="stylesheet">
   <style>
     .ss {
      font-family: "Libre Barcode 128 Text";
          font-size: 24px;
         }
    </style>
 </head>
    <body>
       <br /><span id="test" class="ss">ÃŒqms3NÃŽ</span><br />
    </body>
 </html>;

What I'm doing wrong and how can I solve it?

Create php barcode using code-128 in HTML using google fonts , with no image or drawing



source https://stackoverflow.com/questions/75788918/php-html-barcode-using-code128type-b-with-use-of-google-fonts

No comments:

Post a Comment