<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGContext/setShouldSubpixelQuantizeFonts(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGContextSetShouldSubpixelQuantizeFonts"
  },
  "title" : "setShouldSubpixelQuantizeFonts(_:)"
}
-->

# setShouldSubpixelQuantizeFonts(_:)

Enables or disables subpixel quantization in a graphics context.

```
func setShouldSubpixelQuantizeFonts(_ shouldSubpixelQuantizeFonts: Bool)
```

## Parameters

`shouldSubpixelQuantizeFonts`

A Boolean value that specifies whether to enable subpixel quantization.

## Discussion

When enabled, the graphics context may quantize the subpixel positions of glyphs.

This parameter is part of the graphics state.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)