From owner-freebsd-hackers@freebsd.org Mon Dec 21 15:12:41 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 636DD4BD57C for ; Mon, 21 Dec 2020 15:12:41 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D02yc4xd1z3k24 for ; Mon, 21 Dec 2020 15:12:40 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-il1-f174.google.com with SMTP id r17so9125844ilo.11 for ; Mon, 21 Dec 2020 07:12:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hjDRePC58bafs4pIeapKUXBYWz2JldmnOHKSUS8V1oA=; b=P6oFk2Wg4tDUQtSDtimCg4nJKcSl/skWd5ZCzBX6I08lw+KGyVxvZ2piB66sfzp5LJ y6t+ryGoRuqmBFlQ5hbU3/LAb1VmQLpAoT3INA+OpK0A1pr/fCmdr6ZI8V2qQfJ2BjZz ELOa8DEDtpRlPaZLENzbX8orHIfS5hq9l9yKI0FEOU7v/c1lsOD+83eoH1vJ9zb1mzCk RA5hP1sz/6rkU/xBOKMHtaBo0IQReoJAOGUGKc9PS5YXCttyWWOYMCoC97cCDSjF0XU4 wfgn/l237FqDypE82FPyNYDfbAgxfi0zphRWloAgKheE2pySPCpk7jDctwY3f83aiCHj bXrg== X-Gm-Message-State: AOAM531Zg+E2DTFl5Ad/ATF+qCguYammWdo222K8Us4fw4MOZutTBkPi tNpAqGTnCmsjmoq6pcdTjAwW7MMVCPbZjaEkC7V3lwLZvClyjA== X-Google-Smtp-Source: ABdhPJyiqCW0veysHm2r8oQIs9PjQcrfRe8ayOkbMwb2vEtFxwP9ufJtMdo9XKFAfs6e+IhEaBGhIOQ2UnL/GcgCjwc= X-Received: by 2002:a92:58dc:: with SMTP id z89mr15475023ilf.11.1608563559653; Mon, 21 Dec 2020 07:12:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ed Maste Date: Mon, 21 Dec 2020 10:12:27 -0500 Message-ID: Subject: Re: vt(4) fnt format To: Daniel Lovasko Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4D02yc4xd1z3k24 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.174 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.166.174:from]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[carpeddiem]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.00)[0.005]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[209.85.166.174:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.174:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.174:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2020 15:12:41 -0000 On Mon, 21 Dec 2020 at 09:45, Daniel Lovasko wrote: > > Hello, > > The vt(4) virtual terminal allows changing the current font via the > vidcontrol(1) utility. Some fonts can be found in "/usr/share/vt/fonts", > where these font files have the ".fnt" extension. > > Is there an available description of this format? The data structures are defined in sys/sys/font.h, and there are some comments that explain the format. As I look now though I see at least one error that I'll correct soon (the comment refers to two glyph maps, but there are four). A font file starts with a font_header struct, followed by glyph data (of size determined by fh_width, fh_height, and fh_glyph_count) and four sets of maps (each of a size determined by fh_map_count[]).