Skip to content

Commit

Permalink
Added webfont support.
Browse files Browse the repository at this point in the history
- Webfont support for Aakar, Rekha, Samyak and Lohit
- Webfonts files and stylesheet thanks to http://www.fontsquirrel.com/tools/webfont-generator
- Following CSS instructions are added to have local fonts used if found. This concerns #8
	- local('Aakar')
	- local('Rekha')
	- local('Samyak Gujarati') // Incase user has just installed 'Samyak Gujarati' and not one which supports many indic languages.
	- local('Samyak') // If universal 'Samyak' has been installed
	- local('Lohit Gujarati') // Incase user has just installed 'Lohit Gujarati' and not one which supports many indic languages.
	- local('Lohit') // If universal 'Lohit' has been installed
  • Loading branch information
samyakbhuta committed Apr 16, 2013
1 parent 98cb005 commit 4197e7d
Show file tree
Hide file tree
Showing 17 changed files with 497 additions and 0 deletions.
Binary file added aakar-medium-webfont.eot
Binary file not shown.
113 changes: 113 additions & 0 deletions aakar-medium-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added aakar-medium-webfont.ttf
Binary file not shown.
Binary file added aakar-medium-webfont.woff
Binary file not shown.
51 changes: 51 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,57 @@
body {
text-align: center;
}

@font-face {
font-family: 'Aakar';
src: url('aakar-medium-webfont.eot');
src: local('Aakar'),
url('aakar-medium-webfont.eot?#iefix') format('embedded-opentype'),
url('aakar-medium-webfont.woff') format('woff'),
url('aakar-medium-webfont.ttf') format('truetype'),
url('aakar-medium-webfont.svg#aakarmedium') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Rekha';
src: url('rekha-webfont.eot');
src: local('Rekha'),
url('rekha-webfont.eot?#iefix') format('embedded-opentype'),
url('rekha-webfont.woff') format('woff'),
url('rekha-webfont.ttf') format('truetype'),
url('rekha-webfont.svg#rekhamedium') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Samyak';
src: url('samyak-gujarati-webfont.eot');
src: local('Samyak Gujarati'),
local('Samyak'),
url('samyak-gujarati-webfont.eot?#iefix') format('embedded-opentype'),
url('samyak-gujarati-webfont.woff') format('woff'),
url('samyak-gujarati-webfont.ttf') format('truetype'),
url('samyak-gujarati-webfont.svg#samyak_gujaratiregular') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Lohit';
src: url('lohit-gujarati-webfont.eot');
src: local('Lohit Gujarati'),
local('Lohit'),
url('lohit-gujarati-webfont.eot?#iefix') format('embedded-opentype'),
url('lohit-gujarati-webfont.woff') format('woff'),
url('lohit-gujarati-webfont.ttf') format('truetype'),
url('lohit-gujarati-webfont.svg#lohit_gujaratiregular') format('svg');
font-weight: normal;
font-style: normal;
}

</style>
</head>
<body>
Expand Down
Binary file added lohit-gujarati-webfont.eot
Binary file not shown.
100 changes: 100 additions & 0 deletions lohit-gujarati-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added lohit-gujarati-webfont.ttf
Binary file not shown.
Binary file added lohit-gujarati-webfont.woff
Binary file not shown.
Binary file added rekha-webfont.eot
Binary file not shown.
130 changes: 130 additions & 0 deletions rekha-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rekha-webfont.ttf
Binary file not shown.
Binary file added rekha-webfont.woff
Binary file not shown.
Binary file added samyak-gujarati-webfont.eot
Binary file not shown.
103 changes: 103 additions & 0 deletions samyak-gujarati-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samyak-gujarati-webfont.ttf
Binary file not shown.
Binary file added samyak-gujarati-webfont.woff
Binary file not shown.

1 comment on commit 4197e7d

@kartikm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lohit has webfont support. Please check it at: https://git.fedorahosted.org/cgit/lohit.git/commit/?id=3d75e1fbd42ca9509257ff3919c78d1e58931fc0 , so we can have Makefile, which will generate webfonts from source font. You can assign this to me too :)

Please sign in to comment.