Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0 (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] MonkeyBread Software Releases the MBS Real Studio plug-ins in version 12.0
Next thread: [MBS] [ANN] 12.0fc


Re: [MBS] [ANN] 12.0fc   -   Garth Hjelte
  [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0   -   Ian M. Jones
   Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0   -   Christian Schmitz
   Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0   -   Ian M. Jones
   Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0   -   Christian Schmitz
   [MBS] Re: ChartDirector SplineLayer Has No Text On Axis In Debian 6.0   -   Ian M. Jones

[MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0
Date: 17.01.12 00:02 (Mon, 16 Jan 2012 23:02:54 +0000)
From: Ian M. Jones
Hi,

I'm using a SplineLayer in ChartDirector, and when doing a debug run in Mac OS X with RS2011r4 I see the graph OK with data labels on the axis as expected.

But, when I build for Linux and run as stand-alone in Debian 6.0 the graph is there but labels from axis are missing, although the tick marks are there.

Is there anything I should be doing to get text on the chart axis in Linux?

Regards,

Ian
________________________________________
IMiJ Ltd
http://www.imij.co.uk
http://www.ianmjones.com
http://twitter.com/ianmjones

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0
Date: 17.01.12 13:54 (Tue, 17 Jan 2012 13:54:32 +0100)
From: Christian Schmitz

Am 17.01.2012 um 13:34 schrieb Ian M. Jones:

> The one thing that stumped me for a little bit was working out how to specify the fonts, in your documentation for CDBaseChartMBS.setDefaultFonts and in other functions you say "See Font Specification for details on various font attributes." but there is no link to it. So I had to do a site specific search on google to find the actual documentation for Font Specification to find out that the actual font file name is used. It would be great if you could link to that page to help others who have to specify fonts too.

I'll check whether I can add links.

Greetings
Christian

Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0
Date: 17.01.12 13:34 (Tue, 17 Jan 2012 12:34:59 +0000)
From: Ian M. Jones
On 17 Jan 2012, at 07:58, Christian Schmitz wrote:

>
> Am 17.01.2012 um 00:02 schrieb Ian M. Jones:
>
>> Hi,
>>
>> Is there anything I should be doing to get text on the chart axis in Linux?
>
> Did you use SetFontSearchPath to specify a font folder?
>
> Greetings
> Christian
>

Thanks Christian, I knew there had to be something extra to do in Linux.

The following worked after I installed the ttf-liberation fonts via aptitude:

// If target is Linux, need to tell ChartDirector where to find some fonts.
if TargetLinux then
CDBaseChartMBS.SetFontSearchPath "/usr/share/fonts/truetype/ttf-liberation"
end if

// Create chart.
dim c as new CDXYChartMBS(ChartImageView.Width, ChartImageView.Height)

// If target is Linux, need to tell ChartDirector which fonts from font search path to use for the different font styles.
if TargetLinux then
c.setDefaultFonts("LiberationSans-Regular.ttf", "LiberationSans-Bold.ttf", "LiberationSans-Italic.ttf", "LiberationSans-BoldItalic.ttf")
end if

The one thing that stumped me for a little bit was working out how to specify the fonts, in your documentation for CDBaseChartMBS.setDefaultFonts and in other functions you say "See Font Specification for details on various font attributes." but there is no link to it. So I had to do a site specific search on google to find the actual documentation for Font Specification to find out that the actual font file name is used. It would be great if you could link to that page to help others who have to specify fonts too.

Thanks again for the help.

Ian
________________________________________
IMiJ Ltd
http://www.imij.co.uk
http://www.ianmjones.com
http://twitter.com/ianmjones

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] ChartDirector SplineLayer Has No Text On Axis In Debian 6.0
Date: 17.01.12 08:58 (Tue, 17 Jan 2012 08:58:42 +0100)
From: Christian Schmitz

Am 17.01.2012 um 00:02 schrieb Ian M. Jones:

> Hi,
>
> Is there anything I should be doing to get text on the chart axis in Linux?

Did you use SetFontSearchPath to specify a font folder?

Greetings
Christian

[MBS] Re: ChartDirector SplineLayer Has No Text On Axis In Debian 6.0
Date: 17.01.12 00:18 (Mon, 16 Jan 2012 23:18:01 +0000)
From: Ian M. Jones
Forgot to mention, this happens with 12fc, downloaded today, as well as 12pr7.

Ian
________________________________________
IMiJ Ltd
http://www.imij.co.uk
http://www.ianmjones.com
http://twitter.com/ianmjones

On 16 Jan 2012, at 23:02, Ian M. Jones wrote:

> Hi,
>
> I'm using a SplineLayer in ChartDirector, and when doing a debug run in Mac OS X with RS2011r4 I see the graph OK with data labels on the axis as expected.
>
> But, when I build for Linux and run as stand-alone in Debian 6.0 the graph is there but labels from axis are missing, although the tick marks are there.
>
> Is there anything I should be doing to get text on the chart axis in Linux?
>
> Regards,
>
> Ian
> ________________________________________
> IMiJ Ltd
> http://www.imij.co.uk
> http://www.ianmjones.com
> http://twitter.com/ianmjones
>

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info