Skip to content

Text drawing example for custom fonts does not detect Garamond on Windows 10 #1008

@pushfoo

Description

@pushfoo

Bug Report

Actual behavior:

The custom font loading example is intended to use Garamond, a serif font. Under Windows 10 home, it uses the default fallback font, Arial:
image

Expected behavior:

A Garamond variant is used, and looks like this (serif font):
image

Steps to reproduce/example code:

Run the example as included in the tip of development on Windows 10 Home:

font_name="Garamond")

Root Cause

According to Microsoft, Garamond does not ship with Windows 10 by default, but is provided by installing one of their office products. Adobe may also provide a Garamond variant with their products. We cannot rely on these to be installed on end-user systems.

Possible Fixes

  1. Use either a font present on all operating systems (difficult to synchronize, and may change as licensing changes)
  2. Choose an OS-specific font detected at runtime
  3. Provide a list of system fonts to try

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions