mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-05 02:09:37 +00:00

So procedures can declare args and GimpProcedureDialog show chooser widgets Fix so is no error dialog on id_is_valid for resources Palette.pdb changes and testing Memory mgt changes Gradient pdb Font and Pattern tests Test brush, palette Cleanup, remove generator Rebase, edit docs, install test-dialog.py Whitespace, and fix failed distcheck Fix some clang-format, fix fail distcheck Fix distcheck Cleanup from review Jehan
19 lines
473 B
Python
19 lines
473 B
Python
|
|
"""
|
|
Python scripts to test GimpFont class of libgimp API.
|
|
|
|
See comments about usage and setup in test-resource-class.py
|
|
|
|
Setup: "Sans-serif" font is selected.
|
|
|
|
There are few methods on font.
|
|
Font has no other getter/setters and is not editable.
|
|
Tests of context_set_font and a few other class methods
|
|
are in test_resource_class.py
|
|
"""
|
|
|
|
"""
|
|
Test a known, stock font "Sans-serif"
|
|
"""
|
|
font_sans_serif = Gimp.context_get_font()
|
|
assert font_sans_serif.get_id() == "Sans-serif"
|