# TeeChart PDF Export Does Not Scale Axis Font Correctly, Unlike PNG Output

**URL:** <https://support.steema.com/t/teechart-pdf-export-does-not-scale-axis-font-correctly-unlike-png-output/17952>\
**Category:** .NET\
**Created:** [June 19, 2026, 2:34pm UTC](https://support.steema.com/t/teechart-pdf-export-does-not-scale-axis-font-correctly-unlike-png-output/17952 "2026-06-19T14:34:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ueskimos\_dev00462](https://support.steema.com/letter_avatar_proxy/v4/letter/u/45deac/32.png) [@ueskimos\_dev00462](https://support.steema.com/u/ueskimos_dev00462)\
**Post date:** [June 19, 2026, 2:34pm UTC](https://support.steema.com/t/teechart-pdf-export-does-not-scale-axis-font-correctly-unlike-png-output/17952/1 "2026-06-19T14:34:20Z")

</div>

When the TeeChart is exported as a PDF, the font size of the axes is not scaled correctly, even when a larger font size is set. In contrast, when the chart is exported as a PNG image, everything is displayed and scaled correctly.

The attachment includes both the PNG and PDF exports, each shown with and without scaling enabled. Only the PNG export reflects the correct font scaling, while the PDF export does not apply the scaling to the axis labels.

Code snippet for setting the scale:

```plaintext
private void SetFontSize(double size)
{
	for (int i = 0; i < MyTeeChart.Chart.Axes.Custom.Count; i++)
	{
		if (MyTeeChart.Chart.Axes.Custom[i].Visible)
		{
			MyTeeChart.Chart.Axes.Custom[i].Labels.Font.SizeFloat = (float)size;
			MyTeeChart.Chart.Axes.Custom[i].Title.Font.SizeFloat = (float)size;
		}
	}
}

and

MyTeeChart.Chart.Export.Image.PDF.Height = pSettings.PrintHeight;
MyTeeChart.Chart.Export.Image.PDF.Width = pSettings.PrintWidth;
MyTeeChart.Chart.Export.Image.PDF.Save(pathWithFilename);

or 

PNGFormat png = MyTeeChart.Chart.Export.Image.PNG;
png.Height = pSettings.PrintHeight;
png.Width = pSettings.PrintWidth;
png.Save(pathWithFilename);

```

 ![GraphUnscaled.pdf.png](https://discourse.steema.com/uploads/default/original/2X/0/0d47e309fe136ba2b456a2fefe2a0e425bb235a4.png)  
 ![GraphScaled.pdf.png](https://discourse.steema.com/uploads/default/original/2X/6/6e990404c7f803fdf7c0512ba392cd6727e9c663.png)  
 ![GraphScaled.png.png](https://discourse.steema.com/uploads/default/original/2X/8/8698b4267f4c76baad435e4bfd4caf456d0a3055.png)
