DTL Text

Discussion in 'C-Bus Toolkit and C-Gate Software' started by Dave Byron, Apr 18, 2005.

  1. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Is there a table on the pixel size for english chars used in the DTL text or some other smart way of working out if the text will fit.
    Trail and error with 30 switchs is taking a bit too long.

    dave
     
    Dave Byron, Apr 18, 2005
    #1
  2. Dave Byron

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    DLT Text Width

    Dave,

    Not at the moment, but i guess it could be usefull.

    I'll see what i can do...

    Mark.
     
    Mark, Apr 18, 2005
    #2
  3. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    DLT Text

    I know how many pixels the window is so if i know how many pixels each char takes i write a bit of code to get the text and add up the total pixels.
    Then tell me if its greater than the window size.
    Save me running all over the house checking switches


    dave
     
    Dave Byron, Apr 18, 2005
    #3
  4. Dave Byron

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    DLT Text Character Width

    Here 'tis:
    (Width includes the 1 pixel white space following each char)

    SPACE 06
    ! 03
    " 04
    # 06
    $ 06
    % 09
    & 08
    ' 02
    ( 04
    ) 04
    * 06
    + 06
    , 03
    - 04
    . 03
    / 06
    0 06
    1 05
    2 06
    3 06
    4 06
    5 06
    6 06
    7 06
    8 06
    9 06
    : 03
    ; 03
    < 05
    = 06
    > 05
    ? 07
    @ 0B
    A 07
    B 07
    C 07
    D 07
    E 06
    F 06
    G 07
    H 07
    I 03
    J 07
    K 07
    L 06
    M 08
    N 07
    O 07
    P 07
    Q 07
    R 07
    S 07
    T 07
    U 07
    V 07
    W 08
    X 08
    Y 07
    Z 07
    [ 05
    \ 06
    ] 05
    ^ 0B
    _ 08
    ` 03
    a 07
    b 07
    c 07
    d 07
    e 07
    f 06
    g 07
    h 07
    i 03
    j 06
    k 07
    l 03
    m 0B
    n 07
    o 07
    p 07
    q 07
    r 06
    s 07
    t 06
    u 07
    v 07
    w 0B
    x 08
    y 07
    z 07
    { 05
    | 03
    } 05
    ~ 08

    When i get excited enough i'll do the next 129 chars for Western Euro fonts.

    Hope this is enough for now...

    Cheers,
    Mark.

    P.s. Feel free to post a calculator app once you've written it Dave! :D

    P.p.s. Only 62 of the 64 pixels are available for text.
     
    Last edited by a moderator: Apr 18, 2005
    Mark, Apr 18, 2005
    #4
  5. Dave Byron

    Mark

    Joined:
    Oct 28, 2004
    Messages:
    196
    Likes Received:
    1
    Location:
    Grenoble, France
    DLT Western European Character Width

    Here's the width's for Codepage 2.

    Attached is the full ASCII table supported by DLT. The following Codepage 2 chars start at $7F.

    Forums have gone a bit mad with undefined chars (ie. line 3). See txt file attached...

     07
    ? 08
    ?? 07 :confused:
    ? 03
    ? 07
    ? 07
    ? 0B
    ? 07
    ? 07
    ? 05
    ? 0D
    ? 06
    ? 04
    ? 09
    ? 07
    ? 07
    ? 07
    ? 07
    ? 03
    ? 03
    ? 07
    ? 07
    ? 03
    ? 08
    ? 0B
    ? 05
    ? 0C
    ? 07
    ? 04
    ? 0C
    ? 07
    ? 07
    ? 07
    ? 07
    ? 03
    ? 07
    ? 07
    ? 09
    ? 07
    ? 03
    ? 08
    ? 05
    ? 0A
    ? 05
    ? 09
    ? 07
    * 05
    ? 0A
    ? 07
    ? 05
    ? 07
    ? 05
    ? 05
    ? 04
    ? 06
    ? 0A
    ? 03
    ? 04
    ? 04
    ? 05
    ? 08
    ? 0C
    ? 0B
    ? 0D
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 0B
    ? 07
    ? 06
    ? 06
    ? 06
    ? 06
    ? 04
    ? 04
    ? 05
    ? 05
    ? 08
    ? 08
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 06
    ? 09
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 06
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 0C
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 04
    ? 04
    ? 05
    ? 05
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 09
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07
    ? 07

    Enjoy!

    Mark.
     

    Attached Files:

    Mark, Apr 18, 2005
    #5
  6. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Dlt

    Mark
    tks for info now i will try with just 1-9 and A-Z to start with


    tks again

    dave
     
    Dave Byron, Apr 18, 2005
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.