Skip to content

Commit d29fbfd

Browse files
988484-LinuxUG
1 parent 7bd865d commit d29fbfd

File tree

1 file changed

+2
-15
lines changed
  • Document-Processing/Excel/Excel-Library/NET

1 file changed

+2
-15
lines changed

Document-Processing/Excel/Excel-Library/NET/Linux.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,20 @@ The frequently asked questions about using XlsIO in Linux environment are listed
1212

1313
## How to copy necessary fonts to Linux containers?
1414

15-
Excel to PDF conversion on Linux relies on system fonts available inside the container. By default, only a limited set is installed. Copy the required fonts to "/usr/local/share/fonts/" and refresh the font cache so they are used during conversion. Refer to the steps below to copy fonts.
15+
Excel to PDF conversion on Linux relies on system fonts available inside the container. By default, only a limited set is installed. Copy the required fonts to "/usr/local/share/fonts/" before conversion. Refer to the steps below to copy fonts.
1616

1717
**Steps:**
1818

1919
Step 1: Create a **Fonts** folder inside your project (or next to the solution).
2020
Step 2: Place the required TrueType/OpenType font files (.ttf/.otf) in that folder.
21-
Step 3: Add the following to your Dockerfile to install font support, copy fonts, and refresh the cache.
21+
Step 3: Add the following to your Dockerfile to copy the fonts to the container.
2222

2323
{% tabs %}
2424

2525
{% highlight Dockerfile %}
2626

27-
# Install native font support
28-
RUN apt-get update && apt-get install -y --no-install-recommends \
29-
fontconfig \
30-
libfreetype6 \
31-
libpng16-16 \
32-
libexpat1 \
33-
libuuid1 \
34-
&& rm -rf /var/lib/apt/lists/*
35-
36-
# Copy fonts from your project into the container
3727
COPY ["ProjectName/Fonts/*.*", "/usr/local/share/fonts/"]
3828

39-
# Refresh the font cache so the new fonts are recognized
40-
RUN fc-cache -f -v
41-
4229
{% endhighlight %}
4330

4431
{% endtabs %}

0 commit comments

Comments
 (0)