/usr/src/castle-game-engine-5.2.0/fonts/mk_fonts.sh is in castle-game-engine-src 5.2.0-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #!/bin/bash
set -eux
TEXTUREFONT2PASCAL='texturefont2pascal'
# Some texturefont2pascal options are useful for debugging what's going on.
#TEXTUREFONT2PASCAL='texturefont2pascal --debug-log --debug-font-image'
# Used by Text node in X3DNodes. This font is drawn in 3D,
# always automatically stretched to desired size, so you can freely
# adjust TEXT_NODE_FONT_SIZE to balance the font texture size vs nice font look.
# The default value is the maximum value where we still fit on 256x256 texture.
TEXT_NODE_FONT_SIZE=20
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf --unit-name CastleTextureFont_DjvSansBO_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf --unit-name CastleTextureFont_DjvSansB_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf --unit-name CastleTextureFont_DjvSansO_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf --unit-name CastleTextureFont_DjvSans_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf --unit-name CastleTextureFont_DjvMonoBO_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf --unit-name CastleTextureFont_DjvMonoB_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf --unit-name CastleTextureFont_DjvMonoO_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf --unit-name CastleTextureFont_DjvMono_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf --unit-name CastleTextureFont_DjvSerifBI_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf --unit-name CastleTextureFont_DjvSerifB_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf --unit-name CastleTextureFont_DjvSerifI_"${TEXT_NODE_FONT_SIZE}"
$TEXTUREFONT2PASCAL --size "${TEXT_NODE_FONT_SIZE}" /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf --unit-name CastleTextureFont_DjvSerif_"${TEXT_NODE_FONT_SIZE}"
# Used by CastleControls.UIFont.
# (already created above, as TEXT_NODE_FONT_SIZE matches our desired size for this)
# $TEXTUREFONT2PASCAL --size 20 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
# Used by CastleControls.UIFontSmall
$TEXTUREFONT2PASCAL --size 10 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
# Used by CastleControls as MessageFont, for TCastleDialog
$TEXTUREFONT2PASCAL --size 18 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
# Used by view3dscene
$TEXTUREFONT2PASCAL --size 15 /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
|