Home > Archive > Tcl > March 2006 > Why am I creating named fonts if....
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Why am I creating named fonts if....
|
|
| Ken Tilton 2006-03-28, 10:02 pm |
| ....I cannot use those for the -font configuration of widgets and items?
Looks like I have to translate back via "font actual <name>" to get
component parts to feed to Tk.
I guess I am a little weird in trying to do sophisticated text layout on
a canvas? Wouldn't be my first. :)
ken
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Bryan Oakley 2006-03-28, 10:02 pm |
| Ken Tilton wrote:
> ...I cannot use those for the -font configuration of widgets and items?
> Looks like I have to translate back via "font actual <name>" to get
> component parts to feed to Tk.
>
> I guess I am a little weird in trying to do sophisticated text layout on
> a canvas? Wouldn't be my first. :)
>
> ken
>
You must be doing something wrong. It's perfectly acceptable to create a
named font and assign it to a widget.
Show us the code and the results you are getting and I'm sure we can help.
| |
| Ken Tilton 2006-03-28, 10:02 pm |
| Bryan Oakley wrote:
> Ken Tilton wrote:
>
>
> You must be doing something wrong. It's perfectly acceptable to create a
> named font and assign it to a widget.
>
> Show us the code and the results you are getting and I'm sure we can help.
OK, thx for the encouragement, I'll stare at it some more and try it
interactively (I love that about using Tcl/Tk from Lisp ... when in
doubt, fire up the interpreter).
I threw up my hands because the doc said "anything acceptable to
Tk_GetFont", which I thought meant what we pass /to/ "font create...".
not what we get back.
And when I tried using the named font it was ignored and I got the
default, as advertised, so I thought it was a no-go. back in a sec to
eat my words... :)
ken
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Ken Tilton 2006-03-29, 4:08 am |
| Ken Tilton wrote:
> Bryan Oakley wrote:
>
>
>
> OK, thx for the encouragement, I'll stare at it some more and try it
> interactively (I love that about using Tcl/Tk from Lisp ... when in
> doubt, fire up the interpreter).
>
> I threw up my hands because the doc said "anything acceptable to
> Tk_GetFont", which I thought meant what we pass /to/ "font create...".
> not what we get back.
>
> And when I tried using the named font it was ignored and I got the
> default, as advertised, so I thought it was a no-go. back in a sec to
> eat my words... :)
<chomp-chomp> Works fine thru the interpreter. I'll be back if my code
won't work. But I have a guess: I use a declarative paradigm and have to
manually order certain things to make Tk happy. I might be using the
name before creating the font, and then I just have to get the code
sequenced properly (I had assumed the fonts would go first based on the
code, but I wager not.)
thx again.
ken
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Ken Tilton 2006-03-29, 4:08 am |
| Ken Tilton wrote:
> Ken Tilton wrote:
>
>
>
> <chomp-chomp> Works fine thru the interpreter. I'll be back if my code
> won't work.
ah, yes, case-sensitivity. :)
thx again, ken
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
|
|
|
|
|