• Announcing: What's Your Type version 0.1 (beta).

    From Luc@21:1/5 to All on Sat Mar 9 21:22:14 2024
    Yeah, well, I only began this thing because I thought it would be 100,
    maybe 150 lines of code. And it ballooned to more than 1,600.

    OK, it was good. It's not very polished, it's poorly tested and a few
    things can be considered unfinished, but it's pretty usable. I will
    improve it later.


    What's Your Type, version 0.1, beta. https://sourceforge.net/projects/whatsyourtype/

    Linux only. Windows coming soon.

    What's Your Type is a program with a GUI that lets you browse all the
    fonts you have installed in your operating system and pick/isolate a
    few you may want to use in some project. It is specifically designed
    for people who are working on some graphical design project that
    requires fancy fonts such as Web sites, fliers, newsletters etc.
    and need to browse and choose fonts.

    package require Tk
    package require tile
    package require Thread
    package require BWidget

    All comments are welcome.

    Big "Thank you" to all who helped.


    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rolf Ade@21:1/5 to Luc on Sun Mar 10 19:19:43 2024
    Luc <luc@sep.invalid> writes:
    Yeah, well, I only began this thing because I thought it would be 100,
    maybe 150 lines of code. And it ballooned to more than 1,600.

    OK, it was good. It's not very polished, it's poorly tested and a few
    things can be considered unfinished, but it's pretty usable. I will
    improve it later.


    What's Your Type, version 0.1, beta. https://sourceforge.net/projects/whatsyourtype/

    Linux only. Windows coming soon.

    Thanks for sharing. I gave your script a try and it raised error at
    startup:

    Error in startup script: no such variable
    (read trace on "env(XDG_CONFIG_HOME)")
    invoked from within
    "set ::homedir $env(XDG_CONFIG_HOME)"

    I don't have XDG_CONFIG_HOME set in my enviroment because I just use the default (~/.config). This is just fine, according to the XDG Base
    Directory Specification[1]:

    "$XDG_CONFIG_HOME defines the base directory relative to which
    user-specific configuration files should be stored. If $XDG_CONFIG_HOME
    is either not set or empty, a default equal to $HOME/.config should be
    used."

    I altered your script like:

    if {[info exists env(XDG_CONFIG_HOME)]} {
    set ::homedir $env(XDG_CONFIG_HOME)
    } else {
    # Try to be future ready: no tilde expansion
    # anymore in Tcl 9
    set ::homedir $env(HOME)/.config
    }

    and then it runs fine for me.

    rolf

    [1] https://specifications.freedesktop.org/basedir-spec/latest/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to Rolf Ade on Sun Mar 10 19:21:51 2024
    On Sun, 10 Mar 2024 19:19:43 +0100, Rolf Ade wrote:

    I don't have XDG_CONFIG_HOME set in my enviroment because I just use the >default (~/.config). This is just fine, according to the XDG Base
    Directory Specification[1]:

    I had no idea. I trusted that variable to be universal. Will be fixed in the next version. Thank you.



    On Sun, 10 Mar 2024 17:28:21 -0400, saitology9 wrote:

    You can get it to run on Windows too. Changes for Windows are:
    1) Remove or comment out the entire block of code above and just say this: >set ::homedir [pwd]
    2) there are a few places that use commands similar to "wm attributes
    $::b1 -zoomed 0". This usage is Linux specific and will throw an error.

    Those are things that I will find out when I get it running on Windows. I
    only have XP and I don't have Tcl/Tk installed on Windows. I tried it with a cross-compiled Freewrap binary, but I am having problems with BWidget:

    https://sourceforge.net/p/freewrap/bugs/62/

    It seems I am not the only one:

    https://sourceforge.net/p/freewrap/bugs/50/

    But the proposed fix doesn't work for me.

    I suspect LaBelle will close my ticket as wont-fix but first I want to
    see if he has anything to say.

    Please remember that very few people even know what Tcl/Tk is so I
    really need to distribute binary versions.


    However, I am not sure what I am looking at. Typing c will let you
    change some settings. It is very hard to scroll - maybe it is not meant
    to be scrolled. It displays the fonts on your system with a sample text
    to see what they look like.

    The description of the program is quite clear on its SourceForge page.
    There is also a manual. Did you press F1? You should have been informed
    of the F1 binding on the first run.

    Please elaborate on "very hard to scroll." It should scroll smoothly. Are
    you on Windows?


    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to All on Sun Mar 10 19:53:13 2024
    On Sun, 10 Mar 2024 18:43:41 -0400, saitology9 wrote:

    You can't use the mousewheel scroll. It doesn't do anything. I can
    click or select anything. I can grab the scrollbar and then it works
    but it is a bit different? When I do Control-A, in full selection mode,
    you see the outlines if widgets and stuff.

    I guess my confusion was around the precise widget positioning stuff
    that was discussed in the threads. You can completely ignore my comment.

    **************************

    The mousewheel scroll works fine for me on Linux. The selection doesn't
    go along though. So yes, it's awkward. I will have to fix that.

    Control-A doesn't work at all for me. Does it for you? I can select all
    by double-clicking the background. But that should not happen. Will fix
    it too.

    Windows is not supported for the time being. As soon as I get a chance
    to actually run it on Windows I should iron out those and other
    problems.

    Thank you for the feedback.

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to Luc on Sun Mar 10 23:00:08 2024
    Luc <luc@sep.invalid> wrote:
    On Sun, 10 Mar 2024 19:19:43 +0100, Rolf Ade wrote:

    I don't have XDG_CONFIG_HOME set in my enviroment because I just use the >>default (~/.config). This is just fine, according to the XDG Base
    Directory Specification[1]:

    I had no idea. I trusted that variable to be universal. Will be fixed in the next version. Thank you.

    XDG_* is all Linux/Unix specific stuff, windows has its own, different, vaariant.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)