1

I am trying to use barcode font(ADVC128C.TTF) in libharu but it is not printing(throwing exception - Unsupported ttf format). I have used HPDF_LoadTTFontFromFile() to load font file.
How do we print the barcode by using LibHaru pdf library? Could you please help me into this?

Thanks & Regards, Santosh Kadam.

Hamad
  • 5,096
  • 13
  • 37
  • 65

1 Answers1

1

I had the same problem with an other Barcode font (code128.ttf) It was missing cvt and fpgm which are required tags for libharu. I set the HPDF_REQUIRED_TAGS_COUNT down by 2 and eliminated those REQUIRED_TAGS . Both are found in hpdf_fontdef_tt.c.

This worked for me to print the font after HPDF_LoadTTFontFromFile().

Uschi

Maciej Lach
  • 1,622
  • 3
  • 20
  • 27
Uschi
  • 11
  • 1