(font *Font)
| 379 | } |
| 380 | |
| 381 | func (tv *TableView) applyFont(font *Font) { |
| 382 | if tv.customHeaderHeight > 0 || tv.customRowHeight > 0 { |
| 383 | return |
| 384 | } |
| 385 | |
| 386 | tv.WidgetBase.applyFont(font) |
| 387 | |
| 388 | hFont := uintptr(font.handleForDPI(tv.DPI())) |
| 389 | |
| 390 | win.SendMessage(tv.hwndFrozenLV, win.WM_SETFONT, hFont, 0) |
| 391 | win.SendMessage(tv.hwndNormalLV, win.WM_SETFONT, hFont, 0) |
| 392 | } |
| 393 | |
| 394 | func (tv *TableView) ApplyDPI(dpi int) { |
| 395 | tv.style.dpi = dpi |
no test coverage detected