Skip to content

Instantly share code, notes, and snippets.

@bseib
Created March 23, 2023 15:05
Show Gist options
  • Save bseib/a34a77ff62feeaa450873911c0b9a61a to your computer and use it in GitHub Desktop.
Save bseib/a34a77ff62feeaa450873911c0b9a61a to your computer and use it in GitHub Desktop.
Demonstrates use of a barcode webfont in a single HTML file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Barcode Webfont Example</title>
<link href="https://fonts.googleapis.com/css2?family=Libre+Barcode+39+Extended+Text&display=swap" rel="stylesheet">
<style type="text/css">
.barcode39 {
font-family: 'Libre Barcode 39 Extended Text', cursive;
font-size: 40px;
}
</style>
</head>
<body>
<h1>Example of barcode webfont</h1>
<div class="barcode39">
*hello world*
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment