logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

FcWeightFromOpenTypeDouble - Convert from OpenType weight values to fontconfig ones

Description

FcWeightFromOpenTypeDouble returns an double value to use with FC_WEIGHT, from an double in the 1..1000 range, resembling the numbers from OpenType specification's OS/2 usWeight numbers, which are also similar to CSS font-weight numbers. If input is negative, zero, or greater than 1000, returns -1. This function linearly interpolates between various FC_WEIGHT_* constants. As such, the returned value does not necessarily match any of the predefined constants.

Name

FcWeightFromOpenTypeDouble - Convert from OpenType weight values to fontconfig ones

Since

version 2.12.92 Fontconfig 2.15.0 04 July 2025 FcWeightFromOpenTypeDouble(3)

Synopsis

#include<fontconfig/fontconfig.h>doubleFcWeightFromOpenTypeDouble(doubleot_weight);

See Also