1. Forum moved (you can use login and pass from old forum)
  2. Many discussions moved to the bugtracker

FONT

Discussion in 'Coding' started by Skin36, Apr 20, 2015.

  1. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    29/56

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
    Hi,I tried to open in Gimp large font. Got a picture. Tell me what palette to use?
    [​IMG]
     
  2. JonnyH

    JonnyH Well-Known Member Official Developer Administrator
    64/112

    Joined:
    Jul 17, 2014
    Messages:
    183
    Likes Received:
    36
    Best Answers:
    0
    Where did that image come from? A screenshot of the vanilla apoc (from dosbox or something?) That is really the only 'canon' reference. It then should be reasonably simple to compare the indices contained within the font against all the palettes, and see what colours match..

    I don't know which palette this uses off the top of my head, I believe we just use pal_06.dat or our own ui_palette.png (in data/UI under openapoc) - pmprog may know better where that palette came from....
     
  3. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
    is a screenshot of vanila "bigfont.dat" open as "raw"
     
  4. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
    I also experimented with the file BIGFONT.SPC, yes, maybe it kerning.
    How to make a kerning in the derivation of the font OPENAPOC?
     
  5. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
  6. kkmic

    kkmic Undefined
    44/56

    Joined:
    Jul 17, 2014
    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Basic Latin. Nice!

    Hmm... I see that it is labelled as freeware...is it really freeware
     
  7. Skin36

    Skin36 Well-Known Member Official Developer Administrator
    31/56

    Joined:
    Apr 5, 2015
    Messages:
    62
    Likes Received:
    16
    Best Answers:
    0
    I was able to understand the algorithm font kerning.*.spc files. File spc consists of records indentation for each symbol (symbol interlaced below).It then computes the indentation along the x axis according to the formula:
    min((max(1char_b)-14)+min_for_ind_1char_b(2char_f))
    (min(2char_f))+(max_for_ind_2char_f(1char_b)-14)))

    where:
    1char_b - back index of the first character
    2char_f - front of the second character Indexes

    example: min(13-14+1=0
    3+(10-14)=-1)
    x=-1
     
  8. xracer

    xracer Registered
    29/56

    Joined:
    Jul 17, 2014
    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Very nice
     

Share This Page