Spacing between words

Spacing between words

by Antoine Huvelle -
Number of replies: 1

Hello, 

I'm currently using moodle 2.1.2 and I've a small problem with my moodle certificate. When I print it, everything seems ok except the fact I don't have any space between the words. If you have a look at this line

cert_printtext(60, 230, 'C', 'Helvetica', 'B', 22, "CERTIFICATE of ATTENDANCE"); 

It will print:

CERTIFICATEofATTENDANCE, without the spaces between words. Could this be fixed easily ?

I tried to look at a similar problem on the forum but couldn't find something that suit my needs.

Thanks a lot!

Average of ratings: -
In reply to Antoine Huvelle

Re: Spacing between words

by Chris Collman -

Did you try adding a string in the certificate/lang/certificate.php file, then using that in the cert_printtext line?

I think that should work.  Seem to vaguely remember that problem when I first played with certificate.  What is the space character?   &nbsp   is what it is in HTML. Put each word in quotes then the space character between.

The other solution is to create 3 lines of code instead of 1,  then you can control the positon of each word smile  

Sorry I could not be more help.   Try creating the string.

Chris