jbilcke-hf HF staff commited on
Commit
5f8adfe
·
1 Parent(s): 8a77e56

add some fonts

Browse files
Dockerfile CHANGED
@@ -13,8 +13,13 @@ RUN apk add alpine-sdk pkgconfig
13
  # For FFMPEG and gl concat
14
  RUN apk add curl python3 python3-dev libx11-dev libsm-dev libxrender libxext-dev mesa-dev xvfb libxi-dev glew-dev
15
 
 
 
 
 
 
16
  # For Puppeteer
17
- RUN apk add build-base gcompat udev ttf-opensans chromium
18
 
19
  RUN apk add ffmpeg
20
 
 
13
  # For FFMPEG and gl concat
14
  RUN apk add curl python3 python3-dev libx11-dev libsm-dev libxrender libxext-dev mesa-dev xvfb libxi-dev glew-dev
15
 
16
+ # For fonts, emojis etc
17
+ RUN apk add font-terminus font-noto font-noto-cjk font-noto-extra font-arabic-misc
18
+ RUN apk add font-inconsolata font-dejavu font-awesome
19
+ RUN apk add ttf-opensans
20
+
21
  # For Puppeteer
22
+ RUN apk add build-base gcompat udev chromium
23
 
24
  RUN apk add ffmpeg
25
 
src/bug-in-bun/aitube_ffmpeg/overlay/createTextOverlayImage.ts CHANGED
@@ -7,7 +7,7 @@ import { htmlToBase64Png } from "./htmlToBase64Png"
7
  export async function createTextOverlayImage({
8
  text = "",
9
  textStyle = "outline",
10
- fontFamily = "Montserrat",
11
 
12
  // the unit is vh (so `fontSize: 4` = 4% of the window height)
13
  fontSize = 3,
 
7
  export async function createTextOverlayImage({
8
  text = "",
9
  textStyle = "outline",
10
+ fontFamily = "Noto",
11
 
12
  // the unit is vh (so `fontSize: 4` = 4% of the window height)
13
  fontSize = 3,
src/bug-in-bun/aitube_ffmpeg/overlay/getCssStyle.ts CHANGED
@@ -3,9 +3,10 @@ export type TextOverlayStyle =
3
  | "outline"
4
  | "highlight"
5
 
 
6
  export type TextOverlayFont =
7
- | "Montserrat"
8
- | "Sofia"
9
 
10
  export type TextOverlayFontWeight =
11
  | 100
 
3
  | "outline"
4
  | "highlight"
5
 
6
+ // https://wiki.alpinelinux.org/wiki/Fonts
7
  export type TextOverlayFont =
8
+ | "Noto"
9
+ | "Inconsolata"
10
 
11
  export type TextOverlayFontWeight =
12
  | 100