Received: from out-231.mta0.migadu.com (out-231.mta0.migadu.com [91.218.175.231]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 4EB922236E4 for <~alpine/users@lists.alpinelinux.org>; Wed, 1 Feb 2023 12:38:57 +0000 (UTC) Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ayaya.dev; s=key1; t=1675255136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W654hCPpfipUHXDSFPVhI6CW4l4wZ9eo43eho2Qwt4c=; b=LCsysq4wnY7CKIplPZKGQfKHBf0kJFAVAi0FF0ZxZtCCFDwjVlqJeJ/wjEABDU/jBQj41p IBJ+tb45aCKl7dJh0N0aouHgNjLiOLiNQrftl4AyZnt1vi4yZmGPkiRGP1aM3pPi8ldtjm BRkKsDeDsAMPEU4orSEF3Ccj4So7zBI= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 01 Feb 2023 13:38:49 +0100 Message-Id: Subject: Re: Font dependencies in Alpine Linux X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "alice" To: "Alexander Scherbatiy" , <~alpine/users@lists.alpinelinux.org> References: <59c4dca8-5cd0-1a7f-043f-924448927ece@bell-sw.com> In-Reply-To: <59c4dca8-5cd0-1a7f-043f-924448927ece@bell-sw.com> X-Migadu-Flow: FLOW_OUT On Wed Feb 1, 2023 at 12:43 PM CET, Alexander Scherbatiy wrote: > Hello, > > If I install dejavu fonts on systems ubuntu:20.04, fedora:35,=20 > opensuse/leap:15.4 in docker they do not install fontconfig and freetype= =20 > as dependencies. > > DejaVu fonts have dependencies on fontconfig and freetype libraries on=20 > Linux Alpine . > > --------- > > docker run -it alpine:3.17 ash > / # apk update > / # apk add font-dejavu > (1/10) Installing libexpat (2.5.0-r0) > (2/10) Installing brotli-libs (1.0.9-r9) > (3/10) Installing libbz2 (1.0.8-r4) > (4/10) Installing libpng (1.6.38-r0) > (5/10) Installing freetype (2.12.1-r0) > (6/10) Installing fontconfig (2.14.1-r0) > (7/10) Installing encodings (1.0.6-r0) > (8/10) Installing libfontenc (1.1.6-r0) > (9/10) Installing mkfontscale (1.2.2-r1) > (10/10) Installing font-dejavu (2.37-r3) > Executing busybox-1.35.0-r29.trigger > Executing fontconfig-2.14.1-r0.trigger > Executing mkfontscale-1.2.2-r1.trigger > OK: 28 MiB in 25 packages > --------- > > The use case which I have is using a docker with Linux Alpine to=20 > generate reports with Java in headless mode. > Java allows to use fonts on systems where the fontconfig is not=20 > installed by providing paths to fonts in /lib/fontconfig.properties= =20 > file. > Java also can be built with bundled freetype which is a subset of the=20 > full freetype library. freetype is merely a dependency of fontconfig in this case > > > Is it necessary that fonts have dependencies on fontconfig and freetype= =20 > libraries in Alpine Linux? yes, as normally using the fonts generally requires it. i suppose it's not impossible to not depend on it paired with any fonts directly, but strictly speaking there is generally no difference, except in your special usecase. you'd probably say the same goes for mkfontscale? > > Thanks, > Alexander.