diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f240908..6364cc6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies - run: sudo apt-get install --no-install-recommends -y libtesseract-dev imagemagick tesseract-ocr-eng fontconfig-config + run: sudo apt-get install --no-install-recommends -y libtesseract-dev imagemagick tesseract-ocr-eng fonts-liberation2 - name: Refresh font cache run: sudo fc-cache -v diff --git a/src/ocr.rs b/src/ocr.rs index 2a7ee63..56ac9d7 100644 --- a/src/ocr.rs +++ b/src/ocr.rs @@ -65,7 +65,7 @@ mod tests { let result = Command::new("convert") .args( concat!( - "-background lightblue -fill white -family Arial ", + "-background lightblue -fill white -font Liberation-Sans ", "-size 300x70 -pointsize 24 -gravity east ", "label:haystackhayneedle" )