# FontConfigurationProperty

Struct · External

Configures the display properties of the given text.

- Source: Generated at build time
- Type last changed: v2.183.0 · 12 Mar 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const fontConfigurationProperty: quicksight.CfnAnalysis.FontConfigurationProperty = {
  fontColor: 'fontColor',
  fontDecoration: 'fontDecoration',
  fontFamily: 'fontFamily',
  fontSize: {
    absolute: 'absolute',
    relative: 'relative',
  },
  fontStyle: 'fontStyle',
  fontWeight: {
    name: 'name',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

font_configuration_property = quicksight.CfnAnalysis.FontConfigurationProperty(
    font_color="fontColor",
    font_decoration="fontDecoration",
    font_family="fontFamily",
    font_size=quicksight.CfnAnalysis.FontSizeProperty(
        absolute="absolute",
        relative="relative"
    ),
    font_style="fontStyle",
    font_weight=quicksight.CfnAnalysis.FontWeightProperty(
        name="name"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

FontConfigurationProperty fontConfigurationProperty = FontConfigurationProperty.builder()
        .fontColor("fontColor")
        .fontDecoration("fontDecoration")
        .fontFamily("fontFamily")
        .fontSize(FontSizeProperty.builder()
                .absolute("absolute")
                .relative("relative")
                .build())
        .fontStyle("fontStyle")
        .fontWeight(FontWeightProperty.builder()
                .name("name")
                .build())
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var fontConfigurationProperty = new FontConfigurationProperty {
    FontColor = "fontColor",
    FontDecoration = "fontDecoration",
    FontFamily = "fontFamily",
    FontSize = new FontSizeProperty {
        Absolute = "absolute",
        Relative = "relative"
    },
    FontStyle = "fontStyle",
    FontWeight = new FontWeightProperty {
        Name = "name"
    }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fontConfigurationProperty := &FontConfigurationProperty{
	FontColor: jsii.String("fontColor"),
	FontDecoration: jsii.String("fontDecoration"),
	FontFamily: jsii.String("fontFamily"),
	FontSize: &FontSizeProperty{
		Absolute: jsii.String("absolute"),
		Relative: jsii.String("relative"),
	},
	FontStyle: jsii.String("fontStyle"),
	FontWeight: &FontWeightProperty{
		Name: jsii.String("name"),
	},
}
```

## Properties

- `fontColor`: string — Determines the color of the text.

- `fontDecoration`: string — Determines the appearance of decorative lines on the text.

- `fontFamily`: string — The font family that you want to use.

- `fontSize`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.FontSizeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.FontSizeProperty.html) — The option that determines the text display size.

- `fontStyle`: string — Determines the text display face that is inherited by the given font family.

- `fontWeight`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.FontWeightProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.FontWeightProperty.html) — The option that determines the text display weight, or boldness.
