Ignore:
Timestamp:
07/07/19 08:07:07 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Fonts are not scaled with the DPI when producing the briefing (re #347).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r1004 r1006  
    715715        pcr = context.create_pango_context()
    716716
    717         layout = Pango.Layout(pcr) # cr.create_layout()
     717        layout = Pango.Layout(pcr)
    718718        layout.set_text("Malév VA official briefing")
    719719        font = Pango.FontDescription("sans")
    720         font.set_size(int(32 * scale * Pango.SCALE))
     720        font.set_size(int(32 * Pango.SCALE))
    721721        font.set_weight(Pango.Weight.NORMAL)
    722722        layout.set_font_description(font)
     
    740740                        (loginResult.pilotName, loginResult.pilotID))
    741741        font = Pango.FontDescription("sans")
    742         font.set_size(int(16 * scale * Pango.SCALE))
     742        font.set_size(int(16 * Pango.SCALE))
    743743        font.set_weight(Pango.Weight.MEDIUM)
    744744        layout.set_font_description(font)
     
    763763
    764764        font = Pango.FontDescription("sans")
    765         font.set_size(int(7 * scale * Pango.SCALE))
     765        font.set_size(int(7 * Pango.SCALE))
    766766        font.set_weight(Pango.Weight.ULTRALIGHT)
    767767
Note: See TracChangeset for help on using the changeset viewer.