Graphviz 13.0.0~dev.20241220.2304
|
lookup table for textspan More...
#include <stdbool.h>
Go to the source code of this file.
Functions | |
double | estimate_text_width_1pt (const char *font_name, const char *text, bool bold, bool italic) |
double estimate_text_width_1pt | ( | const char * | font_name, |
const char * | text, | ||
bool | bold, | ||
bool | italic | ||
) |
text | a single line of ASCII text which should contain no control characters. |
text
in 1 point. A value is always returned, falling back to Times-Roman metrics if there is no hard-coded lookup table for the given font_name
. Definition at line 830 of file textspan_lut.c.
References estimate_character_width_canonical(), FontFamilyMetrics::font_name, get_metrics_for_font_family(), get_metrics_for_font_variant(), and FontFamilyMetrics::units_per_em.
Referenced by estimate_textspan_size().