diff --git a/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java b/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java index c3dc2b26..ad479756 100644 --- a/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java +++ b/src/main/java/uk/gov/beis/els/configuration/WebMvcConfiguration.java @@ -60,6 +60,21 @@ public void registerFonts() { LOGGER.info("Arial-bold loaded {}", arialBoldLoaded); + boolean myriadProLoaded = GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont( + Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource("fonts/myriad-pro.ttf").getInputStream())); + + LOGGER.info("Myriad Pro loaded {}", myriadProLoaded); + + boolean myriadProBoldLoaded = GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont( + Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource("fonts/myriad-pro-bold.ttf").getInputStream())); + + LOGGER.info("Myriad Pro Bold loaded {}", myriadProBoldLoaded); + + boolean myriadProSemiBoldLoaded = GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont( + Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource("fonts/myriad-pro-semibold.ttf").getInputStream())); + + LOGGER.info("Myriad Pro Semi Bold loaded {}", myriadProSemiBoldLoaded); + LOGGER.info("Available system fonts are:"); Arrays.stream(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()).forEach(f -> LOGGER.info("Font: {}", f) diff --git a/src/main/resources/fonts/myriad-pro-bold.ttf b/src/main/resources/fonts/myriad-pro-bold.ttf new file mode 100644 index 00000000..8f6ab5d7 Binary files /dev/null and b/src/main/resources/fonts/myriad-pro-bold.ttf differ diff --git a/src/main/resources/fonts/myriad-pro-semibold.ttf b/src/main/resources/fonts/myriad-pro-semibold.ttf new file mode 100644 index 00000000..bab969d4 Binary files /dev/null and b/src/main/resources/fonts/myriad-pro-semibold.ttf differ diff --git a/src/main/resources/fonts/myriad-pro.ttf b/src/main/resources/fonts/myriad-pro.ttf new file mode 100644 index 00000000..fce853ca Binary files /dev/null and b/src/main/resources/fonts/myriad-pro.ttf differ diff --git a/src/main/resources/labels/html-wrapper.html b/src/main/resources/labels/html-wrapper.html index 174cb0bb..a3e02246 100644 --- a/src/main/resources/labels/html-wrapper.html +++ b/src/main/resources/labels/html-wrapper.html @@ -44,6 +44,21 @@ src: url('fonts/arial.ttf'); } + @font-face { + font-family: Myriad Pro; + src: url('fonts/myriad-pro.ttf'); + } + + @font-face { + font-family: MyriadPro-Bold; + src: url('fonts/myriad-pro-bold.ttf'); + } + + @font-face { + font-family: MyriadPro-Semibold; + src: url('fonts/myriad-pro-semibold.ttf'); + } +