|
a |
|
b/notes.txt |
|
|
1 |
This file is for miscellaneous notes that do not really belong in the
|
|
|
2 |
manual (or will get there one day), and might be useful in using
|
|
|
3 |
sqlscreens.
|
|
|
4 |
|
|
|
5 |
======================================================================
|
|
|
6 |
Fonts:
|
|
|
7 |
-----
|
|
|
8 |
|
|
|
9 |
I really know nothing about X11 font handling: please, if you read
|
|
|
10 |
this and know better, set me right.
|
|
|
11 |
|
|
|
12 |
sqlscreens does not deal with fonts and always uses the tk defaults
|
|
|
13 |
except in one place: it will try to use a bold font for the column
|
|
|
14 |
headings in a list window (the headings are set in a text widget to
|
|
|
15 |
use the same tabs as the list).
|
|
|
16 |
|
|
|
17 |
The column headings code tries to derive the bold font from the default
|
|
|
18 |
text window font. This will fail is the font spec is not a Tk style
|
|
|
19 |
list like {Helvetica 12} but an X11 font spec like:
|
|
|
20 |
-*-courier-medium-r-*-*-12-*-*-*-*-*-*-*
|
|
|
21 |
|
|
|
22 |
This means that if you want to change the fonts from your Xdefaults,
|
|
|
23 |
you're better off using Tk-style specs than X11 style. Ex:
|
|
|
24 |
|
|
|
25 |
tablescreen*Label.font: Helvetica 24 bold
|
|
|
26 |
tablescreen*Entry.font: Helvetica 24
|
|
|
27 |
tablescreen*Button.font: Helvetica 24
|
|
|
28 |
tablescreen*Message.font: Helvetica 24 bold
|
|
|
29 |
|
|
|
30 |
Also, there seems to be no way to do this if the program name has a
|
|
|
31 |
'.' in it. In this case either rename the program or use 'option'
|
|
|
32 |
commands inside the program code like:
|
|
|
33 |
|
|
|
34 |
option add "*Label.font" {Lucida 24 bold}
|
|
|
35 |
option add "*Entry.font" {Lucida 24}
|
|
|
36 |
|
|
|
37 |
I found no easy way to increase all the font sizes for example.
|
|
|
38 |
|
|
|
39 |
======================================================================
|