FcWeightToOpenTypeDouble(3)

FcWeightToOpenTypeDouble3

Convert from fontconfig weight values to opentype ones

Usage

#include <fontconfig/fontconfig.h>

double FcWeightToOpenTypeDouble (double ot_weight);

Overview

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

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From fontconfig 2:2.18.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.