Skip to content

Instantly share code, notes, and snippets.

@jbruchanov
Created October 17, 2017 13:31
Show Gist options
  • Save jbruchanov/6f2a6d76131f7bf8beda1cafe0f0fa05 to your computer and use it in GitHub Desktop.
Save jbruchanov/6f2a6d76131f7bf8beda1cafe0f0fa05 to your computer and use it in GitHub Desktop.
Android HTML asset + fonts
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<STYLE TYPE="text/css">
<!--
@font-face {
font-family: "Gotham-medium";
src: url('file:///android_asset/fonts/Gotham-Medium.ttf');
}
@font-face {
font-family: "Gotham-book";
src: url('file:///android_asset/fonts/Gotham-Book.ttf');
}
P { font-family: "Gotham-book", sans-serif; font-size: 11pt;}
li { font-family: "Gotham-book", sans-serif; font-size: 11pt;}
a:link { color: #f1187b; text-decoration: none; }
a:visited { color: #f1187b; text-decoration: none; }
h1 { font-family: "Gotham-medium", sans-serif; font-size: 15pt; }
h2 { font-family: "Gotham-medium", sans-serif; font-size: 13pt; }
strong { font-family: "Gotham-medium", sans-serif; font-size: 11pt; }
-->
</STYLE>
</HEAD>
<body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment