Skip to content

Commit

Permalink
Grotesk font test
Browse files Browse the repository at this point in the history
  • Loading branch information
corvidian committed Sep 24, 2024
1 parent 068175c commit c5fd5e2
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ import com.lowagie.text.Font
import com.lowagie.text.Paragraph
import com.lowagie.text.Phrase
import com.lowagie.text.Rectangle
import com.lowagie.text.pdf.BaseFont
import com.lowagie.text.pdf.PdfPTable

val titleFont = Font(Font.HELVETICA, 18f, Font.BOLD)
val sectionFont = Font(Font.HELVETICA, 15f, Font.BOLD)
private val baseRegularFont =
BaseFont.createFont("HelsinkiGrotesk-Regular.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)
private val baseBoldFont =
BaseFont.createFont("HelsinkiGrotesk-Medium.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)

val headerFont = Font(Font.HELVETICA, 10f, Font.BOLD)
val textFont = Font(Font.HELVETICA, 10f, Font.NORMAL)
private val titleFont = Font(baseBoldFont, 18f, Font.BOLD)
private val sectionFont = Font(baseBoldFont, 15f, Font.BOLD)

private val headerFont = Font(baseBoldFont, 10f, Font.BOLD)
private val textFont = Font(baseRegularFont, 10f, Font.NORMAL)

fun Document.newline() {
this.add(Paragraph(Chunk.NEWLINE))
Expand Down

0 comments on commit c5fd5e2

Please sign in to comment.