---
title: "SetAutoScaleFont Method"
url: "https://reference.aspose.com/cells/go-cpp/displayunitlabel/setautoscalefont/"
product: "Aspose.Cells for Go via C++ API Reference"
description: "SetAutoScaleFont method. Encapsulates the function that represents setautoscalefont in Go."
---


## SetAutoScaleFont function

True if the text in the object changes font size when the object size changes. The default value is True.

```go

func (instance *DisplayUnitLabel) SetAutoScaleFont(value bool)  error

```

## Remarks


## See Also

* Class [DisplayUnitLabel](../)
* Library [Aspose.Cells for Go](../../)
