1e5c31af7Sopenharmony_ci# Copyright 2020-2024 The Khronos Group Inc.
2e5c31af7Sopenharmony_ci# SPDX-License-Identifier: MIT
3e5c31af7Sopenharmony_ci
4e5c31af7Sopenharmony_ci# Vulkan spec PDF stylesheet
5e5c31af7Sopenharmony_ci
6e5c31af7Sopenharmony_ciextends: default
7e5c31af7Sopenharmony_ci
8e5c31af7Sopenharmony_ci# The font handling is equivalent to the bundled default-with-fallback-font-theme.yml,
9e5c31af7Sopenharmony_ci# but uses a local copy of the M+ 1p Fallback font until asciidoctor-pdf
10e5c31af7Sopenharmony_ci# updates theirs. The local copy includes a few more special characters used
11e5c31af7Sopenharmony_ci# in the spec.
12e5c31af7Sopenharmony_cifont:
13e5c31af7Sopenharmony_ci  catalog:
14e5c31af7Sopenharmony_ci    merge: true
15e5c31af7Sopenharmony_ci    # M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols
16e5c31af7Sopenharmony_ci    # It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font
17e5c31af7Sopenharmony_ci    M+ 1p Fallback: mplus1p-regular-fallback.ttf
18e5c31af7Sopenharmony_ci    Noto Emoji: GEM_FONTS_DIR/notoemoji-subset.ttf
19e5c31af7Sopenharmony_ci  fallbacks: [M+ 1p Fallback, Noto Emoji]
20e5c31af7Sopenharmony_ci
21e5c31af7Sopenharmony_ci# Add chapter names to the page footer
22e5c31af7Sopenharmony_cifooter:
23e5c31af7Sopenharmony_ci  recto:
24e5c31af7Sopenharmony_ci    right:
25e5c31af7Sopenharmony_ci      content: '{chapter-title} | {page-number}'
26e5c31af7Sopenharmony_ci  verso:
27e5c31af7Sopenharmony_ci    left:
28e5c31af7Sopenharmony_ci      content: '{page-number} | {chapter-title}'
29e5c31af7Sopenharmony_ci
30e5c31af7Sopenharmony_ci# Add a role for VUID tags
31e5c31af7Sopenharmony_cirole:
32e5c31af7Sopenharmony_ci  vuid:
33e5c31af7Sopenharmony_ci    font_family: $literal_font_family
34e5c31af7Sopenharmony_ci    font_size: round($base_font_size * 0.85)
35e5c31af7Sopenharmony_ci    font_color: 808080
36