|
|
@@ -45,14 +45,15 @@ esac |
|
|
|
|
|
|
|
echo "Thanks. Generating image..." |
|
|
|
|
|
|
|
font_reg=$HOME/.local/share/fonts/Lora-Regular.ttf |
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|
|
|
font_reg=$DIR/fonts/Lora-Regular.ttf |
|
|
|
if [ "$font" = "mono" ]; then |
|
|
|
font_reg=$HOME/.local/share/fonts/Hack-Regular.ttf |
|
|
|
font_reg=$DIR/fonts/Hack-Regular.ttf |
|
|
|
elif [ "$font" != "norm" ]; then |
|
|
|
font_reg=$HOME/.local/share/fonts/OpenSans-Regular.ttf |
|
|
|
font_reg=$DIR/fonts/OpenSans-Regular.ttf |
|
|
|
fi |
|
|
|
write_bold=$HOME/.local/share/fonts/Lora-Bold.ttf |
|
|
|
write_reg=$HOME/.local/share/fonts/Lora-Regular.ttf |
|
|
|
write_bold=$DIR/fonts/Lora-Bold.ttf |
|
|
|
write_reg=$DIR/fonts/Lora-Regular.ttf |
|
|
|
|
|
|
|
# Generate post text |
|
|
|
if [ $(echo "$msg" | wc -m) -lt 40 ]; then |
|
|
|