File: test_font.py

package info (click to toggle)
gimp 3.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 210,076 kB
  • sloc: ansic: 842,287; lisp: 10,761; python: 10,318; cpp: 7,238; perl: 4,355; sh: 1,043; xml: 963; yacc: 609; lex: 348; javascript: 150; makefile: 43
file content (19 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

"""
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"