Changeset 47 for trunk/ScreenTools.pas
- Timestamp:
- Jan 11, 2017, 8:31:41 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ScreenTools.pas
r46 r47 9 9 {$ENDIF} 10 10 StringTables, 11 LCLIntf, LCLType, LMessages, Messages,SysUtils, Classes, Graphics, Controls,11 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, 12 12 Forms, Menus; 13 13 … … 1551 1551 LogoBuffer := TBitmap.create; 1552 1552 LogoBuffer.PixelFormat := pf24bit; 1553 LogoBuffer.Width := wBBook; 1554 LogoBuffer.Height := hBBook; 1553 LogoBuffer.SetSize(wBBook, hBBook); 1555 1554 1556 1555 section := ftNormal; … … 1592 1591 UniFont[section].Style := UniFont[section].Style + [fsItalic]; 1593 1592 end; 1593 // 0.8 constant is compensation for Lazarus as size of fonts against Delphi differs 1594 1594 UniFont[section].size := 1595 round(size * 72 / UniFont[section].PixelsPerInch );1596 end 1597 end 1595 round(size * 72 / UniFont[section].PixelsPerInch * 0.8); 1596 end; 1597 end; 1598 1598 end; 1599 1599 CloseFile(fontscript);
Note:
See TracChangeset
for help on using the changeset viewer.