---
name: "FcWeightToOpenTypeDouble"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcWeightToOpenTypeDouble"
---

# FcWeightToOpenTypeDouble(3)

Convert from fontconfig weight values to OpenType ones

## NAME

FcWeightToOpenTypeDouble - Convert from fontconfig weight values to OpenType ones

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**double FcWeightToOpenTypeDouble (double** *ot\_weight***);**

## DESCRIPTION

**FcWeightToOpenTypeDouble** is the inverse of **FcWeightFromOpenType**.  If the input is less than FC\_WEIGHT\_THIN or greater than FC\_WEIGHT\_EXTRABLACK, returns -1.  Otherwise returns a number in the range 1 to 1000.

## SINCE

version 2.12.92
