text2pdf

Git mirror of http://www.eprg.org/pdfcorner/text2pdf/
git clone git://git.finwo.net/app/text2pdf
Log | Files | Refs | README

commit 6975e94e9d656df0d5556b27288ba623fc58977c
parent db37614b25710e1ab54dc72ba9ed0758f0aebf7d
Author: finwo <finwo@pm.me>
Date:   Tue, 21 Jul 2020 14:14:56 +0200

Fonts need slash prefix

Diffstat:
Msrc/main.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -414,6 +414,12 @@ int main(int argc, char **argv){ font = defaultFont; } + // Prefix font with "/" + char *aTmp = calloc(strlen(font)+2, sizeof(char)); + strcat(aTmp,"/"); + strcat(aTmp,font); + font = aTmp; + // Calculate lines per page if (lines == 0) lines = (pageHeight - 72) / vertSpace; if (lines < 1) lines = 1;