Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1421240rwj; Sun, 18 Dec 2022 07:56:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvDxT9we+9lu8sjI97hqPza+hVZQKsn0xBagI9T4pGipSGVaxiFsm+Lqh8uGgJFSO7ESbbG X-Received: by 2002:a05:6a21:c00f:b0:af:f80a:140f with SMTP id bm15-20020a056a21c00f00b000aff80a140fmr8403181pzc.8.1671378980112; Sun, 18 Dec 2022 07:56:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671378980; cv=none; d=google.com; s=arc-20160816; b=Rzv3HBdDhs1ttaFftpraNQJj+WvKsm6eIq+7Sw15jitOp6mUYkpbVoE29BFxSJKoPx vR79dJ2LEYBHqA3f64JIAMVGyqJrYxV3jv1ETwC+TRwbepmfUpYKS5jEk2Nfx1fGoeDR pjUiFetIYxtozpIPv2dc8Z6vq0yZ8jJ5hIPUsYOKDtKwEi+APazRUT09YlVQwXABGHh5 kp7wHt1cr+7Cr3NbepP8vJa2Z9aRI5vfyv1u21yEjRuiRqFd+113XO7UrdFyrxWEFBgN QgRqcla+77iZrSOtS+9Y0piW3/9wz+G8Z4fMkJi/uPhxn7MT4K7Yki2NjhQS7a2mpMgl sOsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=X+HvC7GoimfKJvVlPKqizMs5xu1XDpPtvIjZ2NeBqGk=; b=iphDp5h7cnXuYlmj9vVVgJEz+sKK4Sd7OnVupliRFNb3M+yYxSvUDCuKdj37+XDTug eT/5+DroGxa3znHUXJBrwupP7DrVBrX9uPDrb7UBMA35kI7Af+LfX9PQai9Yq40U1D2r MbvLe/oPgumdL6SOyS6U6dcwNAjcF0GGOWYgRGrHiNB+b03ByyMrlNXiz5+iWFA/90vd Ar/veCALF+YyvhFnIzWFCh73cPAa/NlbQk+W13zNfUL9sDOV80pkSAcBr/SP4uh7Yijw 6YBnEtY/TKW2Z+gLOECJuvB6oftqjXtCQhAifF3k41o0UXr57imwjLWh8yE7iu8UFVmR ivdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170902d2c900b00188b79ec70fsi9015066plc.581.2022.12.18.07.56.02; Sun, 18 Dec 2022 07:56:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbiLRP3C (ORCPT + 72 others); Sun, 18 Dec 2022 10:29:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbiLRP3A (ORCPT ); Sun, 18 Dec 2022 10:29:00 -0500 Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B107D5F52 for ; Sun, 18 Dec 2022 07:28:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 83F1820175; Sun, 18 Dec 2022 16:28:58 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o1MuEkFArtI1; Sun, 18 Dec 2022 16:28:58 +0100 (CET) Received: from begin.home (lfbn-bor-1-376-208.w109-215.abo.wanadoo.fr [109.215.91.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 645B120107; Sun, 18 Dec 2022 16:28:58 +0100 (CET) Received: from samy by begin.home with local (Exim 4.96) (envelope-from ) id 1p6vb0-00C7YI-06; Sun, 18 Dec 2022 16:28:58 +0100 Date: Sun, 18 Dec 2022 16:28:57 +0100 From: Samuel Thibault To: Alexey Gladkov Cc: Greg Kroah-Hartman , Jiri Slaby , kbd@lists.altlinux.org, linux-kernel@vger.kernel.org Subject: Re: [kbd] [patchv2 3/3] VT: Bump font size limitation to 64x128 pixels Message-ID: <20221218152857.qle75c6lhexkdoym@begin> Mail-Followup-To: Samuel Thibault , Alexey Gladkov , Greg Kroah-Hartman , Jiri Slaby , kbd@lists.altlinux.org, linux-kernel@vger.kernel.org References: <20221218003209.503539532@ens-lyon.org> <20221218003237.503424466@ens-lyon.org> <20221218145532.syqzu76q23rz4tx6@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexey Gladkov, le dim. 18 déc. 2022 16:25:01 +0100, a ecrit: > On Sun, Dec 18, 2022 at 03:55:32PM +0100, Samuel Thibault wrote: > > Alexey Gladkov, le dim. 18 déc. 2022 15:39:38 +0100, a ecrit: > > > On Sun, Dec 18, 2022 at 01:32:12AM +0100, Samuel Thibault wrote: > > > > -#define max_font_size 65536 > > > > +#define max_font_width 64 > > > > +#define max_font_height 128 > > > > +#define max_font_glyphs 512 > > > > +#define max_font_size (max_font_glyphs*max_font_width*max_font_height) > > > > > > As a suggestion that you can safely ignore. Maybe make max_font_glyphs a > > > sysctl parameter to be able to use larger fonts ? > > > > > > I get requests from time to time in kbd that it is not possible to load a > > > larger font. > > > > 64KiB was really low, while the theoretically possible max was > > 32*32*512 = 512KB, so I understand there used to be such requests :) > > > > Here, by setting the max to 64x128*512, I don't think we'll need more. > > I was not talking about the size of one glyph, but about the number of > glyphs in the font. Right now the font cannot have more than 512 glyphs. That one is unfortunately *very* hardcoded in the VT code, since it's the very representation of the console text in vc_screenbuf which is set to the VGA-based 16bits per glyph, with a 8+8 or 9+7 separation between glyph number and color number. Lifting that would be way more involved. Samuel