|
Bugzilla – Full Text Bug Listing |
| Summary: | [Build 20231025] graphicsMagick: config file references ghostscript fonts - but does not trigger installation | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Dominique Leuenberger <dimstar> |
| Component: | Other | Assignee: | Petr Gajdos <pgajdos> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | ana.guerrero, stefan.bruens |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | https://openqa.opensuse.org/tests/3676006/modules/graphicsMagick/steps/17 | ||
| Whiteboard: | |||
| Found By: | openQA | Services Priority: | |
| Business Priority: | Blocker: | Yes | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Dominique Leuenberger
2023-10-26 09:34:02 UTC
This is an autogenerated message for OBS integration: This bug (1216604) was mentioned in https://build.opensuse.org/request/show/1120618 Factory / GraphicsMagick Isn't this going in circles if the default removes the dependency, and graphicsmagick then pulls the fonts in again? Helvetica (the default font family for GM) is not actually required, neither for most compositing or conversion operations, nor for text annotations in general. You can use any Truetype font with GM, as long as you specify the full path: $> gm convert -size 320x240 -fill red -draw 'font "/usr/share/fonts/truetype/Hack-Regular.ttf";text 0,20 "TEST"' xc:black output.png /or/ $> gm convert -size 320x240 -fill red -font /usr/share/fonts/truetype/Hack-Regular.ttf -draw 'text 0,20 "TEST"' xc:black output.png If the OBS test case requires a specific font, the font should be installed by the test case. A recommends for the font may be in order, but forcing it on everyone who installs e.g. inkscape is not a good idea. Hello Stefan, in case ghostscript-fonts-std is not installed: $ gm convert -fill red -draw 'text 0,20 "TEST"' black.png output.png gm convert: Unable to read font (/usr/share/ghostscript/fonts/n019003l.pfb). $ It seems that, with current config, the font file above is required, even if not in all usages, yes. Is there a way to do config such that we would get rid of ghostscript fonts entirely? Will try to figure out, in case anyone see that immediately. Perhaps we could introduce type-dejavu.mgk for example? (In reply to Petr Gajdos from comment #3) > Hello Stefan, > > in case ghostscript-fonts-std is not installed: > > $ gm convert -fill red -draw 'text 0,20 "TEST"' black.png output.png > gm convert: Unable to read font (/usr/share/ghostscript/fonts/n019003l.pfb). > $ > > It seems that, with current config, the font file above is required, even if > not in all usages, yes. I think "not in all usages" is putting more weight after it than actually true. The ghostscript font is required if and only if you want to impose a text stamp. For *all other* usages, format conversion, scaling, composing, etc, the fonts are *not* necessary. Thus my recommendation to just "recommend" the fonts, without a hard dependency. > Is there a way to do config such that we would get rid of ghostscript fonts > entirely? Will try to figure out, in case anyone see that immediately. Maybe its sufficient to add a matching config, but not sure. (In reply to Stefan Brüns from comment #5) > Thus my recommendation to just "recommend" the fonts, without a hard > dependency. Ok, let's choose this way. In case of complaints we can consider the below as option B. https://build.opensuse.org/request/show/1142213 > > Is there a way to do config such that we would get rid of ghostscript fonts > > entirely? Will try to figure out, in case anyone see that immediately. > > Maybe its sufficient to add a matching config, but not sure. |