Den tisdagen den 30:e juli 2013 kl. 16:42:17 UTC+2 skrev Samuel Spiik:
>
> Hi! 
>
> I’m using mwlib to convert MediaWiki articles to PDF. I also use 
> reportlab. 
>
> I was just curious as to how exactly you change the default font to Arial. 
> Been messing around with this for a while and would appreciate some help! 
>
> I have:
>
> 1 – changed default font and serif font in pdfstyles.py to “Helvetica”. 
>
> 2 – Added the code below in fontconfig.py
>
> fonts = [
>    {'name': 'Arial',
>    'code_points': ['Basic Latin',],
>    'xl_scripts': ['Latin'],
>    'file_names': ['freefonts/Arial.ttf', ],
>    },
>    ...
> ]
>
> I'm still getting Arial and helvetica of some reason, and I have no idea 
> where the helvetica is coming from or how to replace it with arial. 
>
> Anyone know how I can change all the font to arial?  
>

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to