ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
71 stars 39 forks source link

black and white fonts #1108

Open sginoza opened 9 months ago

sginoza commented 9 months ago

Describe the issue

Is it possible to set a preference for black-and-white fonts?

Section 3.2.1.1 of draft-ietf-jsonpath-base included the following: U+1F914 ("🤔", THINKING FACE)

This was changed to the following to avoid color: U+1F3BC (“🎼”, MUSICAL SCORE)

pdffonts showed it was using the following font: NWKMBL+Noto-Color-Emoji

Carsten noted that we "could use 'Noto Emoji' instead of 'Noto Color Emoji'; this is properly black-and-white."

Note: this is not currently delaying publication of any documents. draft-ietf-jsonpath-base has been published as RFC 9535, which uses U+1F041 ("🁁", DOMINO TILE HORIZONTAL-02-02).

Code of Conduct

kesara commented 9 months ago

Looks like prioritizing Noto Emoji over Noto Color Emoji will hit a WeasyPrint issue: https://github.com/Kozea/WeasyPrint/issues/1848

A workaround for this is: Removing Noto Color Emoji from the system and installing Noto Emoji font from https://fonts.google.com/noto/specimen/Noto+Emoji Note that the Noto Emoji font provided by https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip is old, and doesn't cover a lot of codepoints.