FcWeightFromOpenTypeDouble(3)
okay so bestie, this is the FcWeightFromOpenTypeDouble(3) page π β the manual for the little fontconfig translator that takes OpenType weight values and turns them into fontconfig ones. No cap, it's giving utility-function main character energy. β¨
β¨ NAME β¨
FcWeightFromOpenTypeDouble β Convert from OpenType weight values to fontconfig ones. That's literally the whole vibe: OpenType weight in, fontconfig weight out. π
πΈ SYNOPSIS πΈ
#include <fontconfig/fontconfig.h>
double FcWeightFromOpenTypeDouble (double ot_weight);
π¦ DESCRIPTION π¦
okay so FcWeightFromOpenTypeDouble returns a double value to use with FC_WEIGHT, and it takes a double in the 1..1000 range, resembling the numbers from the OpenType specification's OS/2 usWeight numbers β which are also similar to CSS font-weight numbers, iykyk. π
If the input is negative, zero, or greater than 1000, it returns -1. Bestie, that's the rule. π«Ά
This function linearly interpolates between various FC_WEIGHT_* constants. As such, the returned value does not necessarily match any of the predefined constants. It's cute like that. π
π SINCE π
version 2.12.92 β¨
mwah π β this cutie is from Fontconfig 2.17.0, dated 27 June 2025, and it's the FcWeightFromOpenTypeDouble(3) manual page. π
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms