mirror of
https://github.com/Taiko2k/GTK4PythonTutorial.git
synced 2025-07-21 20:51:10 +02:00
add note
This commit is contained in:
@@ -665,7 +665,7 @@ a basic example of a single line of text:
|
||||
|
||||
font = Pango.FontDescription.new()
|
||||
font.set_family("Sans")
|
||||
font.set_size(12 * Pango.SCALE)
|
||||
font.set_size(12 * Pango.SCALE) # todo how do we follow the window scaling factor?
|
||||
|
||||
context = self.get_pango_context()
|
||||
layout = Pango.Layout(context) # Add Pango to your imports. i.e. from gi import Pango
|
||||
|
Reference in New Issue
Block a user