ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  how to control font weight using cdml?
Posted by reddy on Nov-26-2021 20:30
hi Peter,

How to make a piece of text using cdml? is there a parameter for that in this <*font=arial.ttf,size=9*> format.

thanks
Reddy

  Re: how to control font weight using cdml?
Posted by reddy on Nov-26-2021 20:33
meant to how to make a piece of text "bold"

  Re: how to control font weight using cdml?
Posted by Peter Kwan on Nov-27-2021 00:28
Hi Reddy,

In <*font=arial.ttf,size=9*>, the "arial.ttf" is font file that contains the font you want to use. That font file contains the Arial font.

If you want to use the Arial Bold font, the font file is "arialbd.ttf".

<*font=arialbd.ttf,size=9*>

If you are using ChartDirector 7.x on Windows or macOS, you can use the font family name instead of the font file name, like:

<*font=Arial Bold,size=9*>

(Older versions of ChartDirector only support font file name, not font family name.)

Regards
Peter Kwan

  Re: how to control font weight using cdml?
Posted by reddy on Nov-27-2021 03:29
Thank you peter. that works!