{deck}
version:1
card:1
size:[512,342]
name:"dungeonfont.deck"

{fonts}
dungeon:"%%[encoded data, 4232 characters]"
template:"%%[encoded data, 4232 characters]"

{card:template}
image:"%%[encoded data, 7820 characters]"
{widgets}
field1:{"type":"field","size":[336,288],"pos":[160,32],"font":"template","value":"How razorback jumping-frogs can level six piqued gymnasts!"}
button1:{"type":"button","size":[128,16],"pos":[16,305],"script":"template.0","text":"Apply Changes"}
tiles:{"type":"canvas","size":[128,192],"pos":[16,32],"show":"none","border":0,"image":"%%[encoded data, 4444 characters]","pattern":35,"scale":1}
button2:{"type":"button","size":[127,20],"pos":[16,272],"script":"template.1","text":"Show Key","style":"check","value":0}

{script:template.0}
on tile i do
 w:floor tiles.size[0]/16
 x:16*w%i
 y:16*floor i/w
 card.image.copy[tiles.pos+x,y 16,16]
end

on click do
 if !card.name in deck.fonts
  deck.add["font" 16,16 card.name]
 end
 f:deck.fonts[card.name]
 f.space:0
 each i in range 95
  f[i]:tile[i]
 end
 field1.font:card.name
end
{end}

{script:template.1}
on click do
 tiles.toggle["transparent"]
end
{end}

{card:dungeon}
image:"%%[encoded data, 13492 characters]"
{widgets}
tiles:{"type":"canvas","size":[128,192],"pos":[16,32],"show":"none","border":0,"image":"%%[encoded data, 4452 characters]","pattern":35,"scale":1}
field1:{"type":"field","size":[336,288],"pos":[160,32],"font":"dungeon","value":"welcome, dungeonman\nadventure awaits...\n\n#$$$$$$$$$$#    \n#**\"|  \"  *#    ===\n#   |  '   $$$# = =\n#``$     $  }}# ===\n# @         }}#\n#\"        '#$$$ YY\n$$$$$#&#$$$$    YY\n     #Z#         \n     #Z#     ZZ XX \n  #$$$Z$$$#  ZZ XX\n  #ZZZZZZ%#\n  $$$$$$$$$ 10/23hp\n\n\n\n [\\\\\\]  ><<<  PP\n ##&##\" <><   PP\n  T  \n  <>> @;@ '   \"QQ\"\n   >>>        \"RR\"\n    \"\"   <<<   \"\"\n\n"}
button1:{"type":"button","size":[128,16],"pos":[16,304],"script":"template.0","text":"Apply Changes"}
button2:{"type":"button","size":[127,20],"pos":[16,271],"script":"template.1","text":"Show Key","style":"check","value":0}

