In Game Books - Typography 101

Discussion in 'Crafting & Gathering' started by aevans, Jun 27, 2015.

Thread Status:
Not open for further replies.
  1. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
  2. Net

    Net Avatar

    Messages:
    3,727
    Likes Received:
    11,178
    Trophy Points:
    153
    [ ###### ]colour[ - ] is for colours;)
    [ FF0000 ]red[ - ] is red
     
    Mata, unicornslady and SeleneNoctua like this.
  3. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    I was just going to post something....

    [​IMG]
     
  4. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    Of course these means people can start making and publishing treasure maps with ASCII art and colors. Good luck with the formatting!
     
    Mata, cartodude and Jatvardur like this.
  5. Jatvardur

    Jatvardur Avatar

    Messages:
    2,020
    Likes Received:
    3,002
    Trophy Points:
    165
    Gender:
    Male
    Location:
    CH
    I found that some characters don't render. It would be good to get a list of those.

    I'd guess non-Roman characters are not yet supported, I wonder if accent Roman character are though.
     
  6. Alexander

    Alexander Avatar

    Messages:
    1,835
    Likes Received:
    5,523
    Trophy Points:
    125
    Looking forward to seeing Runic characters supported :)
     
  7. Balandar

    Balandar Avatar

    Messages:
    410
    Likes Received:
    1,086
    Trophy Points:
    55
    Gender:
    Male
    Location:
    Honor Hold
    Does the BBCode count against the 8,000 character limit?
     
  8. Alexander

    Alexander Avatar

    Messages:
    1,835
    Likes Received:
    5,523
    Trophy Points:
    125

    Just as a point of interest for everyone else, make sure that there is no space between the bracket and the character. I made that mistake the first time around. :)

    Should look like this
    [FF0000]red[-]
     
  9. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
  10. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    In my image above I specifically put spaces between the BBCode elements so they would be visible in the book (with the spaces). Essentially if it is not an exact match of some pattern for the valid markup options, it won't be marked up and will be displayed as is. I included a link to the actual text used for that book.

    On a side note, I discovered [c]something[/c] removes the [c] and [/c] from the rendered output, but I don't know what the markup is for. Let me know what you find out. (I'm thinking chapter headers for an eventual table of contents.)
     
    Alexander likes this.
  11. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    I also noticed that the in-game books seem to start out with [000000] so as to force the font to black. Later I found out if you use the [-] markup it changes the font to white, at least if there was no other color markup in the file.

    You don't need to use the [-] to end a font color if you are going to switch to another color. Just put the next color code in the file and the color will be changed.
     
    SeleneNoctua and Alexander like this.
  12. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    To further complicate matters it looks like the game is adding the [000000] to the beginning of every page. Which means if you have a color spanning a page break, everything after the page break will revert to black. Perhaps that can be undone or only leave it at the start of the book, not the start of each page.

    I hereby vote for a markup tag to insert a page break. That way we can follow it with the color we want and know the top of the page will continue in that color.
     
    Womby and Alexander like this.
  13. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    Does anybody know which font is used for the book?
     
  14. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    A quick study on character widths:

    It looks like you can have 99 "1" (the digit one) characters on a line before it wraps.

    32 "w" (lowercase) or 24 "W" (uppercase) before a wrap.

    Apparently bold or italics don't actually change the character width.


    [​IMG]

    [​IMG]
     
  15. Miracle Dragon

    Miracle Dragon Legend of the Hearth

    Messages:
    2,957
    Likes Received:
    6,313
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Currently: Zhongxian, Chongqing, China
    So, what is the width of a space?
     
    LoneStranger and Net like this.
  16. Blaze Barkley (RedDeer)

    Blaze Barkley (RedDeer) Avatar

    Messages:
    147
    Likes Received:
    276
    Trophy Points:
    18
    Gender:
    Male
    Location:
    Poland
    space is infinite (or at least it constantly gets wider!)
     
  17. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    It appears that the width of 4 "spaces" is approximately equal to the width of 6 "1"s (one, the digit).

    [​IMG]
     
    Mata, Miracle Dragon and Alexander like this.
  18. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    Also, these and other tests books are in my public cache (sitting on a black paver) on my property in Morview. Feel free to reverse engineer them and make your own discoveries.
     
    Miracle Dragon and Alexander like this.
  19. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
    Balec Fares deCani and Mata like this.
  20. aevans

    aevans Avatar

    Messages:
    387
    Likes Received:
    545
    Trophy Points:
    43
Thread Status:
Not open for further replies.