Add Roboto font family and update PDF generation to use custom fonts
- Added Roboto font files to the Docker image and specified their location. - Updated the PDF generation code to use the Roboto font instead of Arial. - Enhanced the PDF output by including additional font styles (Bold, Italic, etc.) for better formatting. - Created a new directory for fonts in the Docker container to manage font files effectively.
This commit is contained in:
+2
-1
@@ -14,5 +14,6 @@ COPY . /app/
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
RUN mkdir -pv /fonts
|
||||
COPY tienda/static/fonts/ /fonts/
|
||||
CMD ["/app/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user