From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Date: Mon, 16 Jan 2023 23:44:34 +0100 From: Samuel Thibault To: Alexey Gladkov Message-ID: <20230116224434.sjo2ez4j6l4av4bc@begin> Mail-Followup-To: Samuel Thibault , Alexey Gladkov , Linux console tools development discussion , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org References: <20221218003209.503539532@ens-lyon.org> <20221218003339.263695493@ens-lyon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Cc: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, Linux console tools development discussion Subject: Re: [kbd] [patch] font: Leverage KD_FONT_OP_GET/SET_TALL font operations X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2023 22:44:42 -0000 Archived-At: List-Archive: Alexey Gladkov, le mer. 11 janv. 2023 21:00:05 +0100, a ecrit: > > @@ -54,13 +55,13 @@ do_loadfont(struct kfont_context *ctx, i > > int bad_video_erase_char = 0; > > int ret; > > > > - if (height < 1 || height > 32) { > > - KFONT_ERR(ctx, _("Bad character height %d"), height); > > + if (height < 1 || height > 64) { > > + KFONT_ERR(ctx, _("Bad character height %d (limit is 64)"), height); > > Hm. But max_font_height is 128. Shouldn't it be height > 128 ? > > > return -EX_DATAERR; > > } > > > > - if (width < 1 || width > 32) { > > - KFONT_ERR(ctx, _("Bad character width %d"), width); > > + if (width < 1 || width > 128) { > > + KFONT_ERR(ctx, _("Bad character width %d (limit is 128)"), width); > > Same here. max_font_width is 64. Oops, sure, fixed it, will send an updated kbd patch for that. Samuel