Skip to content

Fonts files not found and code examples need to be updated #333

Description

@yellow-straw-hat

Hello,

The following code snippets are not working:

err := pdf.AddTTFFont("wts11", "../ttf/wts11.ttf")

err = pdf.AddTTFFont("loma", "../ttf/Loma.ttf")

pdf.Image("../imgs/gopher.jpg", 200, 50, nil) //print image

err := pdf.AddTTFFont("times", "./test/res/times.ttf")

err := pdf.AddTTFFont("font1", "./test/res/font1.ttf")

pdf.AddTTFFont("font2", "./font2.ttf")

fontUrl := "https://github.com/google/fonts/raw/master/ofl/daysone/DaysOne-Regular.ttf" 

Documentation and project structure need to be updated. Used fonts in the code examples do not exist in the project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions