Giter VIP home page Giter VIP logo

Comments (6)

wietze avatar wietze commented on May 31, 2024 1

Just for reference, since this image runs with node as user, the full path is /home/node/.local/share/fonts.

I used the following to get default Microsoft fonts working:

wget --output-document fonts.zip https://www.w7df.com/files0/Windows7DefaultFonts.zip?dl=1 && unzip fonts.zip && rm fonts.zip
docker run (...) -v `pwd`/Windows7DefaultFonts:/home/node/.local/share/fonts (...)

Similarly, emojis in my presentation rendered in colour in Chrome, but for some reason showed in black-and-white when running it through Decktape.

I used the following to get colour emojis:

wget https://noto-website.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip && unzip NotoColorEmoji-unhinted.zip && rm NotoColorEmoji-unhinted.zip
docker run (...) -v `pwd`:/home/node/.local/share/fonts (...)

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024 1

Right. Otherwise we can add an item in the FAQ.

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024

Sorry for the delayed answer 😞.

The Docker containers do not have access to fonts installed on the host. As you've noted, you'll have to mount a data volume pointing to ~/.local/share/fonts/.

Depending on your use case, one option that we may consider is to have some font packages pre-installed in the DeckTape Docker image for the most commonly used fonts.

Let me know your thoughts.

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024

Let me close this. Do not to re-open it if needed.

from decktape.

astefanutti avatar astefanutti commented on May 31, 2024

@wietze thanks. I wonder if it would make sense to add these fonts to the Docker image.

from decktape.

wietze avatar wietze commented on May 31, 2024

I agree it might be helpful to others too (e.g. I needed it to get the Georgia font working), however this sort of thing is always tricky when it comes to licences...

from decktape.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.