Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing fonts after following INSTALL.md #3655

Closed
Phyks opened this issue Jan 23, 2019 · 3 comments
Closed

Missing fonts after following INSTALL.md #3655

Phyks opened this issue Jan 23, 2019 · 3 comments
Assignees
Labels

Comments

@Phyks
Copy link

Phyks commented Jan 23, 2019

Hi,

I followed https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#installation-on-ubuntudebian (on Ubuntu bionic) and was expecting the required fonts to be installed. However, when running Kosmtik, I get the following warnings:

Mapnik LOG> 2019-01-23 14:15:36: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2019-01-23 14:15:36: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2019-01-23 14:15:36: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2019-01-23 14:15:36: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'

It seems there are two issues with the fonts:

  • First, ttf-unifont package does not seem to provide a Medium font, from looking at the files within the package. Is the unifont Medium font supposed to be provided by this package?

  • Second, Noto Emoji is not packaged nor installed, which was already discussed in Where to find "Noto Emoji Regular" #2379. However, there seems to be now a package for Ubuntu (starting from bionic / 18.04 LTS) called fonts-noto-color-emoji which provides the font. Still, the font is named "Noto Color Emoji" and not "Noto Emoji", so simply installing the package is not enough. Same seems to be available in Debian, but only in testing for now. Would it be worth mentionning this in the INSTALL.md (and eventually use the "Color" font)?

Best,

@kocio-pl kocio-pl added the text label Jan 23, 2019
@kocio-pl kocio-pl added this to the Bugs and improvements milestone Jan 23, 2019
@sommerluk sommerluk self-assigned this Jan 23, 2019
@sommerluk
Copy link
Collaborator

Hi @Phyks and thanks for the report.

  • Unifont has different names on different Linux distributions (and sometimes even in different versions of the same Linux distribution), see Fix unifont case #429 for details. We have therefore both, Unifont Medium and unifont Medium in our list, so on almost all distributions we catch the font if installed – and you will always get an error message for the other one. We prefer having an error message than requiring our users to customize the font list depending on their Linux distribution. (You say that the Ubuntu “package does not seem to provide a Medium font”. I cannot verify this right now as I do not use Ubuntu, but the production servers at openstreetmap.org use also Ubuntu and did not complain about it. Note that the file name of a font file and the font name of a font file are different things, they are not necessarily identical.)

  • “Noto Emoji” and “Noto Color Emoji” are two different fonts. The first is a “normal” font as most other fonts you have on your computer (only one colour, that can be defined by the application). The latter is a colour font, that means it’s rendered with the colours defined in the font file (that makes the nice emojji images). We use intentionally the first, because it does not make sense in our cartographic use case to render coloured emojis. We prefer a standard-one-colour font, where we can define the colour ourself in our rendering style. (Anyway, I suppose Mapnik would not even support coloured fonts.)

Summary: Technically this are non-issues. But I suppose we should make a better description in the INSTALL.md file…

@Adamant36
Copy link
Contributor

A better description would be good. When I first started using Mapnik, I didn't know the warnings about fonts where normal and that it would load without them. So it would be good if there was at least a mention of the fact that the warnings are normal and don't effect anything.

@Phyks
Copy link
Author

Phyks commented Jan 24, 2019

Hi @sommerluk,

Thanks a lot for the detailed explanations!

I think replicating your comment #3655 (comment) in the INSTALL.md file would be super useful for new comers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants