[Module] FontEx (dynamische Fonts)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] FontEx (dynamische Fonts)

Beitrag von Thorsten1867 »

FontEx - Module (all OS / 64Bit / DPI)
  • Font Management
  • automatische Größenanpassung von Gadget Texten
  • Ermitteln der benötigten Fontgröße bei vorgegebener Höhe und Breite

Code: Alles auswählen

; FontEx::AddGadget()      - add gadget to work with FontEx and load the required font if necessary.
; FontEx::FitText()        - fit font size for current text
; FontEx::SetAttribute()   - [#Minimum / #Maximum / #Padding / #PaddingX / #PaddingY]
; FontEx::SetFont()        - change the font of the gadget and load the required font if necessary.
; FontEx::SetText()        - set text and fit font size
Download: FontExModule.pbi
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild