Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
does it fix that?
  • Loading branch information
abossard committed Feb 26, 2020
commit b67ec1c309b76876d1f58b72c07b175398d6ac4b
3 changes: 2 additions & 1 deletion src/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ gdip_get_cairo_font_face (GpFont *font)
{
if (!font->cairofnt) {
FcPattern *pattern = FcPatternBuild (
FcPatternDuplicate (font->family->pattern),
NULL,
FC_FAMILY, FcTypeString, font->face,
FC_SLANT, FcTypeInteger, ((font->style & FontStyleItalic) ? FC_SLANT_ITALIC : FC_SLANT_ROMAN),
FC_WEIGHT, FcTypeInteger, ((font->style & FontStyleBold) ? FC_WEIGHT_BOLD : FC_WEIGHT_MEDIUM),
NULL);
Expand Down