Any Font/SHP gurus out there?

Discussion in 'AutoCAD' started by pkirill, Feb 12, 2004.

  1. pkirill

    pkirill Guest

    can anyone tell me how to convert these:

    *194,12,x194
    2,03c,1,3,2,7,50,4,2,2,034,0

    *132,12,x132
    2,0e4,1,3,2,7,50,4,2,2,0ec,0

    to "UNIFONT" hexidecimal code?
     
    pkirill, Feb 12, 2004
    #1
  2. pkirill

    David Kozina Guest

    ..shp file header should read something like this:

    *UNIFONT,6,Extended Simplex Roman for UNICODE
    21,7,2,0,0,0

    (The important bit above is *UNIFONT - the rest should be to suit your
    definition file needs - see the help files)

    In the definitions you provided, substitute
    *000C2 for *194
    &
    *00084 for *132

    I *think* that should be all you need to do.

    hth,
    David Kozina
     
    David Kozina, Feb 12, 2004
    #2
  3. pkirill

    pkirill Guest

    Nope. Bummer. I still get an error that my "shape is too long".

    Here's a comprison and the code looks quite different. The top is unicode,
    the bottom is old code:

    *02302,20,ktria
    2,14,8,(-6,-21),1,0C0,084,066,06A,08C,2,8,(19,0),14,8,(-13,-10),0

    *000C2,12,x194
    2,03c,1,3,2,7,50,4,2,2,034,0

    Make any sense to you?
     
    pkirill, Feb 12, 2004
    #3
  4. pkirill

    David Kozina Guest

    I think you may've got something else wrong somewhere.

    When you use the COMPILE command, do you also get a error line number?
    That can help a lot in determining where the problem lies.

    Did you insert the redefinitions in their correct sequence position in the
    ..shp file - i.e. between the definitions *00083 & *00085 and *000C1 &
    *000C3, respectively? (Not sure if this matters, but I like to have things
    in order.)

    Did you REM out (with a ; at the beginning of each line) the existing *00084
    and *000C2 definitions, if any?

    Do you have at least one blank line at the end of your .shp file?

    Taking stabs in the dark.
     
    David Kozina, Feb 12, 2004
    #4
  5. pkirill

    David Kozina Guest

    Also - is this for a bigfont definition or a regular font definition?
    If it's for a bigfont file, you'll need to do a 'byte-shift' with respects
    to your escape character's ascii value.
    More info on what you're trying to do might help.
     
    David Kozina, Feb 12, 2004
    #5
  6. I ran into the same problem converting reg to unicode.
    If I remember correctly all unicode characters need two bytes for each symbol, so when you call a subshape you need to provide two bytes for the shape number:

    *000C2,13,x194
    2,03c,1,3,2,7,0,50,4,2,2,034,0
     
    Allen Johnson, Feb 17, 2004
    #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.