Skip to content

Commit 3aaf249

Browse files
authored
comma four (#36639)
* squash squash squash * scroller tici
1 parent b73be44 commit 3aaf249

File tree

239 files changed

+10876
-839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+10876
-839
lines changed

selfdrive/assets/fonts/process.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
LANGUAGES_FILE = TRANSLATIONS_DIR / "languages.json"
1111

1212
GLYPH_PADDING = 6
13-
EXTRA_CHARS = "–‑✓×°§•€£¥"
13+
EXTRA_CHARS = "–‑✓×°§•X⚙✕◀▶✔⌫⇧␣○●↳çêüñ–‑✓×°§•€£¥"
1414
UNIFONT_LANGUAGES = {"ar", "th", "zh-CHT", "zh-CHS", "ko", "ja"}
1515

1616

@@ -68,6 +68,10 @@ def _glyph_metrics(glyphs, rects, codepoints):
6868

6969

7070
def _write_bmfont(path: Path, font_size: int, face: str, atlas_name: str, line_height: int, base: int, atlas_size, entries):
71+
# TODO: why doesn't raylib calculate these metrics correctly?
72+
if line_height != font_size:
73+
print("using font size for line height", atlas_name)
74+
line_height = font_size
7175
lines = [
7276
f"info face=\"{face}\" size=-{font_size} bold=0 italic=0 charset=\"\" unicode=1 stretchH=100 smooth=0 aa=1 padding=0,0,0,0 spacing=0,0 outline=0",
7377
f"common lineHeight={line_height} base={base} scaleW={atlas_size[0]} scaleH={atlas_size[1]} pages=1 packed=0 alphaChnl=0 redChnl=4 greenChnl=4 blueChnl=4",
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)