Skip to content

Commit

Permalink
Fixed #1 using ubuntu font family
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok Shukla committed Apr 5, 2015
1 parent 11856e8 commit 2c44171
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


14 changes: 14 additions & 0 deletions js/bill_writer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

var billWriter = {
version: '0.1.0',
config: {
Expand All @@ -17,8 +18,21 @@ var billWriter = {
if (info == undefined) {
return;
}

pdfMake.fonts = {
ubuntu: {
normal: 'Ubuntu-L.ttf',
bold: 'Ubuntu-B.ttf',
italics: 'Ubuntu-LI.ttf',
bolditalics: 'Ubuntu-BI.ttf'
}
};

var doc = {
content: [],
defaultStyle: {
font: "ubuntu"
},
styles: {
title: {
fontSize: 30,
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

$(document).ready(function() {
var body = $('body');
var devMode = false;
var devMode = true;

var billGenerated = false;

Expand Down
2 changes: 1 addition & 1 deletion libs/vfs_fonts.js

Large diffs are not rendered by default.

0 comments on commit 2c44171

Please sign in to comment.