GNU bug report logs - #82129
[PATCH] Allow font shapers to specify the number of glyphs

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: समीर सिंह Sameer Singh <lumarzeli30@HIDDEN>; Keywords: patch; dated Wed, 28 Oct 2026 16:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 29 Oct 2026 11:23:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 07:23:24 2026
Received: from localhost ([127.0.0.1]:54921 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xMOE8-0000sw-08
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2026 07:23:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43050)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xMOE6-0000qm-1b
 for 82129 <at> debbugs.gnu.org; Thu, 29 Oct 2026 07:23:22 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xMOE0-0002y9-Ke; Thu, 29 Oct 2026 07:23:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=MSt3bqFMeHY+NqdWRlJoirkEf1K0MYOlAJDpQhfQSP0=; b=jzPVEULwRKOgb2NBObd9
 zgUQO2eCZqDmoSbot2mh+YvqrSJxeHUwIYQeknBiZFNKj7NhvsANoRLCFitKF8yaThQraE7Ezs0jp
 8s4GnEXyVBa0T4UZnoOyYndxWVc1UOP8yIDLPcFvcfvDqzBtQnHzQ9peOm8iv6WVkQHJgWn0LBQ0i
 cOTJDF7uEyZtR8V03CgbQpK46YzpOQ+PqQpoZauYGqYSBjo8erjk/DH7rVaguk9AJ4ejKrieZimm8
 jc0O91J7tR3AB4HlpWazTM6UQjtL6gKKHuEVlywbYFf+Vm2zkInoTD+liSy0bRxYKUfQIfHP9c3LL
 NdAuFMJZcoph5w==;
Date: Thu, 29 Oct 2026 13:23:14 +0200
Message-Id: <86ecd8wy1p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <CAOR1sLxZKsZaxQvwMY+7KCi2fUjo08TFtezNt6OTL1QLku7xpg@HIDDEN>
 (message from =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuQ==?= Sameer Singh
 on Thu, 29 Oct 2026 06:46:32 -0400)
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
 <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
 <86y0bhwuyk.fsf@HIDDEN>
 <CAOR1sLwW5u=5bTLDEavn2aQdh5a5k=P7miNieGVQKf57Bp1+Zw@HIDDEN>
 <86wlr1vy2q.fsf@HIDDEN>
 <CAOR1sLxZKsZaxQvwMY+7KCi2fUjo08TFtezNt6OTL1QLku7xpg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: समीर सिंह Sameer Singh <lumarzeli30@HIDDEN>
> Date: Thu, 29 Oct 2026 06:46:32 -0400
> Cc: 82129 <at> debbugs.gnu.org
> 
> > We still support Uniscribe, so if it requires more iterations through
> > the loop, we should do it.  But please add there a comment with the
> > information above, so we will not forget that this is for Uniscribe.
> >
> > Thanks.
> 
> v2 attached, please review.

Ok, now a few minor nits that remain:

> +  for (i = 0; i < 6; i++)
>      {
>        n = font->driver->shape (gstring, direction);
>        if (FIXNUMP (n))
> -	break;
> +	{
> +	  ptrdiff_t n_glyphs = XFIXNUM (n);
> +	  if (n_glyphs > 0)

I think this could be

	  if (n_glyphs >= 0)

and then the test n_glyphs < 0 below would be unnecessary.

> +	    break;
> +
> +	  if (n_glyphs < 0)
> +	    {
> +	      ptrdiff_t needed_size = - n_glyphs;
> +	      ptrdiff_t incr = needed_size - LGSTRING_GLYPH_LEN (gstring);
> +	      if (incr > 0)
> +		gstring = larger_vector (gstring, incr, -1);
> +	      continue;

What happens here in incr is non-positive? won't we have an
infloop?  Yes, I know it shouldn't happen, but an infloop in redisplay
is a pretty bad situation, so it's best to avoid it and simply fail.

> -  if (i == 3 || XFIXNUM (n) == 0)
> +  if (i == 6 || XFIXNUM (n) == 0)

This calls XFIXNUM without testing FIXNUMP.  It might be better to
move this test into the loop, where we do test FIXNUMP.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 29 Oct 2026 10:46:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 06:46:44 2026
Received: from localhost ([127.0.0.1]:36536 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xMNed-0008Ta-Fe
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2026 06:46:44 -0400
Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:45284)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xMNea-0008R8-4R
 for 82129 <at> debbugs.gnu.org; Thu, 29 Oct 2026 06:46:41 -0400
Received: by mail-ed1-x530.google.com with SMTP id
 4fb4d7f45d1cf-6afafc89b48so3265854a12.2
 for <82129 <at> debbugs.gnu.org>; Thu, 29 Oct 2026 03:46:40 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793270794; cv=none;
 d=google.com; s=arc-20260327;
 b=HZVbotOR2DaR3EdogXLIXgfpLGmR0JPJVS7osHypw9AbXySNZYhr/J24+Z4nTDsg/b
 Skuge6CloKJburGRDsP2OIv8BKJHKjqDbd5zh0sOIOkK0xOpohmQpObTPy7V32WzgPiB
 Q975XiBFYvlE5euP/tJkDYMC9As+Ef9IzBk65A9PNHGaSnZTvt/TDF37rnvqp1lyQWY+
 TECCN6QGqNCfTXZEzIA5MGcD1kSrucXqQ2Fph+KSlrCGCF9M87nHH19L3eIS5iAiIrwT
 CJA7G3WAI75G0vKyx/QvtTZCoBZfkDTZWTg99Ur+irUhrCjBu0w9JTm5/Uv88uBxECcP
 Bzsw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:dkim-signature;
 bh=BvaQ+X+S63jPS2OFD/EACEtEqQf7wNZjjb85pp+2UoI=;
 fh=rZVLfeAjH9Jaxl0zxSiWU/oQPMCJw28webqnTwngLb0=;
 b=AdJ8IPIXmwFNjp0FVkKHPZLn8CYovW/8hQaNsu8tj81hyYLZ49q8hVMTeTeGZzlruE
 Q2oqs3rWM/3GmWPCOuwv8la4qC90dK5mMqN9FNcQhQSVPuNVCsSTMv8wLqbvhw62XlU1
 n4zBLbHY1GB9ZlGMsq8h9w9seXv6/d6vUmcjWHqFS+Qv3+ObrzIsKkb+bYwnoB+9aKkJ
 cbDfAYRe0OtLAdixpjckUPgsGIlwDDhquMVVASfnk1DAAD4Lz3seD8v9km8Wk0botG0d
 5/vWhotZjiqpSEzYpdYgJEQCI/AI20ojaZQ0IAB7oyOnWVkg0K2MmZFU6AXD3c/4bENL
 geiQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793270794; x=1793875594; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:mime-version:references
 :in-reply-to:from:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=BvaQ+X+S63jPS2OFD/EACEtEqQf7wNZjjb85pp+2UoI=;
 b=sjM28q0swn+RTCT8fw1SgaqJGTZvTZBCxtjqC6QLGLe6ljq94VEjnrZNSL2nIVJzQv
 o7J9YcL75tBxJen0vkZug1GtGbafDXjL6N0fs0dqBAm5N9vUSgzvtQPLWazilm1yJ8MV
 ldJLUgjquqlKu5RI6eiwPUwskmQi02YG9dVk+B6ZWw8zL+ieDpwwMQxyi2almKfH7yQK
 UNlP6KwN+5sbBcS/MCKNtTGmYcJYGXLEhMSyBG9dMwiFvmGQ2YbnT4IX7We//vKNq5FZ
 KDVkheQbIkyBRwB51K1u2YvfF/ESvWkZDd9RWAKzH3ovBJqN3SPkVaGw6h3Ugswaok+s
 AMTw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793270794; x=1793875594;
 h=content-type:cc:to:subject:message-id:date:mime-version:references
 :in-reply-to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to:content-type;
 bh=BvaQ+X+S63jPS2OFD/EACEtEqQf7wNZjjb85pp+2UoI=;
 b=uJ1ON7DrLAT/K4iv+MiilON9a2j01tbazbmCCMmo6Fg+/vlvB00cmlbQ3rgL5yvlqs
 gB1ANQ1ZAx3eKaqsFuegMmTPHu62sqlxcV+SucURtXj1PT3+/cibunxttkGxJL1fAiMx
 l1UOjvTgkyNx0NFhkSfQR2pV5B7SloyJvozptUNU6ykOrw6RSknmr9WKjs6vi5xMcFpz
 W8Ni0PdX/XdmSrShRmmyVqeqJvXvJYJWFHQFaXIgIGnRcatNJwhLPYcWcK/adXh+zIL3
 Hkb86ypAqGfA9tJ+PFCTpHvDGSJ2N5xwgs9YbsFaWocWhiGUW3DWf7AEP+JE5SdC5VUR
 4K1A==
X-Gm-Message-State: AFq9FYK4NSAhBTx80QTZ+PUkKp5FSrikEE/lwNDHQnDCLAux3kTwwtJc
 R/dkLxtwdCcXqOzSdAQzV4fTX4/cSs+27r6xHcU9fVbndo6wBcd0lSHKq1T7AjXfD+fQwdgiTEM
 f5eIc5TettmgD6MLbcmNvmyeltUPO8GfRIw==
X-Gm-Gg: AYBFou1RZuTqxjxUqyusXqQK+2L/pu9qIbxD7kazskzQRcZHBFHMa8N8wox5tWQR/wl
 NYZYyzFGbBQN5zSnWL0/U2+xMB7buBBqOFy3BOyT5Lgez+fpln6ef//0O4ev/X7Petzji8ncoIs
 hy4fnYVQHuz4mPQEcQGVnR9YnTO6aTqOa5Q7H95CVm+1keqPOJgEXudSu/tBcy8QIJ53+saH0PZ
 hYv2Bcc5nS26RRpv3fcLcOFiSqEtgOD9O/+Ox6NrwvDV1B/FEMZ/Obbp2joSRrRAcP+xiIoz3dP
 AYj40HfpA5Xfc9VBgLK0CWfvpZbgMt/UPbAgSWryNZ7qi64ebV6sD6BCZEJwTav7/X1fs0DvGUO
 bUVQHUDV3dF4a5KKILWThsgdeB9uvptXG9S87qRXPUXD1+1xjxUp5CrlN/ntsn9/EETBKiXPQVf
 ilqwXfjSwKBszIGg==
X-Received: by 2002:aa7:d403:0:b0:6af:5b14:78e7 with SMTP id
 4fb4d7f45d1cf-6b49cc1095amr2499118a12.34.1793270793595; Thu, 29 Oct 2026
 03:46:33 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 29 Oct 2026 06:46:32 -0400
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Thu, 29 Oct 2026 06:46:32 -0400
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <86wlr1vy2q.fsf@HIDDEN>
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
 <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
 <86y0bhwuyk.fsf@HIDDEN>
 <CAOR1sLwW5u=5bTLDEavn2aQdh5a5k=P7miNieGVQKf57Bp1+Zw@HIDDEN>
 <86wlr1vy2q.fsf@HIDDEN>
MIME-Version: 1.0
Date: Thu, 29 Oct 2026 06:46:32 -0400
X-Gm-Features: AclHuK83rQumjy7uixL4i9PewO8YC2QoJWl4wXoxAMj29CWLRB2yEbY0c_CHiBw
Message-ID: <CAOR1sLxZKsZaxQvwMY+7KCi2fUjo08TFtezNt6OTL1QLku7xpg@HIDDEN>
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/mixed; boundary="000000000000a3b138065ef864e9"
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii writes: >> From: समीर सिंह Sameer
    Singh >> Date: Wed, 28 Oct 2026 14:32:15 -0400 >> Cc: 82129 <at> debbugs.gnu.org
    >> >> Eli Zaretskii writes: >> >> >> > Why 1024? The GNU Coding Standards
    frow [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
                             headers
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (lumarzeli30[at]gmail.com)
  0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
                             in digit (lumarzeli30[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:530 listed in]
                             [list.dnswl.org]
  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
                             lines
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

--000000000000a3b138065ef864e9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=
=E0=A4=B9 Sameer Singh <lumarzeli30@HIDDEN>
>> Date: Wed, 28 Oct 2026 14:32:15 -0400
>> Cc: 82129 <at> debbugs.gnu.org
>>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>> >> > Why 1024?  The GNU Coding Standards frown on arbitrary limits.
>> >>
>> >> The number is indeed arbitrary. What do you suggest instead?
>> >
>> > For starters, why do we need a limit at all? why not let it be as
>> > large as PTRDIFF_MAX, for example (which is the maximum the underlying
>> > architecture can support)?
>>
>> Thanks, I will use PTRDIFF_MAX instead.
>>
>> >
>> > Also, why did you enlarge the loop count from 3 to 6? is that perhaps
>> > a left-over from your original attempt to support more resizes?  If
>> > so, this is no longer necessary now, is it?
>>
>> I increased it specifically for the Uniscribe shaper in MS
>> Windows. Because ScriptShape does not tell us the glyph length it
>> requires, and Microsoft explicitly advises us to retry with a larger
>> buffer. (https://learn.microsoft.com/en-us/windows/win32/api/usp10/nf-us=
p10-scriptshape#remarks)
>>
>> But if this shaper is no longer being used in Windows, then I guess the
>> increase in loop count can be reverted.
>
> We still support Uniscribe, so if it requires more iterations through
> the loop, we should do it.  But please add there a comment with the
> information above, so we will not forget that this is for Uniscribe.
>
> Thanks.

v2 attached, please review.

--000000000000a3b138065ef864e9
Content-Type: text/plain; charset="utf-8"
Content-Disposition: attachment
Content-Transfer-Encoding: base64
X-Attachment-Id: 90d3e7d31c2894ed_0.2

DQotLSANCuCkuOCkruClgOCksOCkuOCkv+CkguCkuQ0K
--000000000000a3b138065ef864e9
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Allow-font-shapers-to-request-larger-glyph-buffers-b.patch"
Content-Disposition: attachment; 
	filename="0001-Allow-font-shapers-to-request-larger-glyph-buffers-b.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: 90d3e7d31c2894ed_0.1

RnJvbSBiYmQ2YzQ0YjIyYWY0MWRmNzNjYTgwYmUwMGZhMTNhYjllOGVkMTYwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/PUUwPUE0PUI4PUUwPUE0PUFFPUUwPUE1PTgw
PUUwPUE0PUIwPTIwPUUwPUE0PUI4PUUwPUE0PUJGPz0KID0/VVRGLTg/cT89RTA9QTQ9ODI9RTA9
QTQ9Qjk9MjBTYW1lZXI9MjBTaW5naD89IDxsdW1hcnplbGkzMEBnbWFpbC5jb20+CkRhdGU6IFdl
ZCwgMjggT2N0IDIwMjYgMjE6MzA6MjMgKzA1MzAKU3ViamVjdDogW1BBVENIXSBBbGxvdyBmb250
IHNoYXBlcnMgdG8gcmVxdWVzdCBsYXJnZXIgZ2x5cGggYnVmZmVycwogKGJ1ZyM4MjEyOSkKClNv
bWUgY29tcGxleCBmb250cyBjYW4gZXhwYW5kIGEgc21hbGwgbnVtYmVyIG9mIGNoYXJhY3RlcnMg
aW50byBkb3plbnMKb2Yg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IHRoZSBtZXRob2QgaXMgY2FsbGVkIGFnYWluIHdpdGggYSBsYXJnZXIKKyAg
ICAgR1NUUklORy4gICovCiAgIExpc3BfT2JqZWN0ICgqc2hhcGUpIChMaXNwX09iamVjdCBsZ3N0
cmluZywgTGlzcF9PYmplY3QgZGlyZWN0aW9uKTsKIAogICAvKiBPcHRpb25hbC4KZGlmZiAtLWdp
dCBhL3NyYy9oYmZvbnQuYyBiL3NyYy9oYmZvbnQuYwppbmRleCBlNDYxYjUyMjMwZC4uMzQxZWU4
M2EwNzMgMTAwNjQ0Ci0tLSBhL3NyYy9oYmZvbnQuYworKysgYi9zcmMvaGJmb250LmMKQEAgLTQ5
OSw3ICs0OTksNyBAQCBoYmZvbnRfc2hhcGUgKExpc3BfT2JqZWN0IGxnc3RyaW5nLCBMaXNwX09i
amVjdCBkaXJlY3Rpb24pCiAKICAgZ2x5cGhfbGVuID0gaGJfYnVmZmVyX2dldF9sZW5ndGggKGhi
X2J1ZmZlcik7CiAgIGlmIChnbHlwaF9sZW4gPiBMR1NUUklOR19HTFlQSF9MRU4gKGxnc3RyaW5n
KSkKLSAgICByZXR1cm4gUW5pbDsKKyAgICByZXR1cm4gbWFrZV9maXhudW0gKC0gZ2x5cGhfbGVu
KTsKIAogICAvKiBXZSBuZWVkIHRoZSBjbHVzdGVycyBpbiBsb2dpY2FsIG9yZGVyLiAgKi8KICAg
Ym9vbCBidWZfcmV2ZXJzZWQgPSBmYWxzZTsKLS0gCjIuNTYuMAoK
--000000000000a3b138065ef864e9--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 29 Oct 2026 06:08:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 02:08:10 2026
Received: from localhost ([127.0.0.1]:58743 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xMJJ3-0005FN-NB
	for submit <at> debbugs.gnu.org; Thu, 29 Oct 2026 02:08:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38736)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xMJJ1-0005Ci-1e
 for 82129 <at> debbugs.gnu.org; Thu, 29 Oct 2026 02:08:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xMJIv-0002Tb-El; Thu, 29 Oct 2026 02:08:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Cjtoh4xu470gu/PTy0sHbOtQ/4lh7Hvmxvy1dDmz9OQ=; b=H2FL364/pRhjbB/bYhiI
 /tIt9qaEL4oWGLoH750OArNGR29sR/dtlokUJMuQjWDDtVvnEk4ue0hf1ok+vYfuyeelXefsENHr6
 lIQ7JTmaGgwBu7GupfcPve+Vb+7gIbVA/YncScjAcDjiLVVcAUvAIMjb6DUqQjzi/XUS9mj5oVxuN
 /B4+mD4dSYIMpKq9JDplu5tZJcdYK3yO6aSdThx5SiLu6GPFuWeSV955nP9NeG9xgAfUJFq8b9Jun
 bufy8pKKw7Sq1LGJ1mshUYu10t7xlDDAvx9de5MH7NsBNYw4pY0oCLOMj3wUAkphpfZVOTDwOJW/3
 DTeoOhYefn4ZUA==;
Date: Thu, 29 Oct 2026 08:07:57 +0200
Message-Id: <86wlr1vy2q.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <CAOR1sLwW5u=5bTLDEavn2aQdh5a5k=P7miNieGVQKf57Bp1+Zw@HIDDEN>
 (message from =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuQ==?= Sameer Singh
 on Wed, 28 Oct 2026 14:32:15 -0400)
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
 <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
 <86y0bhwuyk.fsf@HIDDEN>
 <CAOR1sLwW5u=5bTLDEavn2aQdh5a5k=P7miNieGVQKf57Bp1+Zw@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: समीर सिंह Sameer Singh <lumarzeli30@HIDDEN>
> Date: Wed, 28 Oct 2026 14:32:15 -0400
> Cc: 82129 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> > Why 1024?  The GNU Coding Standards frown on arbitrary limits.
> >>
> >> The number is indeed arbitrary. What do you suggest instead?
> >
> > For starters, why do we need a limit at all? why not let it be as
> > large as PTRDIFF_MAX, for example (which is the maximum the underlying
> > architecture can support)?
> 
> Thanks, I will use PTRDIFF_MAX instead.
> 
> >
> > Also, why did you enlarge the loop count from 3 to 6? is that perhaps
> > a left-over from your original attempt to support more resizes?  If
> > so, this is no longer necessary now, is it?
> 
> I increased it specifically for the Uniscribe shaper in MS
> Windows. Because ScriptShape does not tell us the glyph length it
> requires, and Microsoft explicitly advises us to retry with a larger
> buffer. (https://learn.microsoft.com/en-us/windows/win32/api/usp10/nf-usp10-scriptshape#remarks)
> 
> But if this shaper is no longer being used in Windows, then I guess the
> increase in loop count can be reverted.

We still support Uniscribe, so if it requires more iterations through
the loop, we should do it.  But please add there a comment with the
information above, so we will not forget that this is for Uniscribe.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 28 Oct 2026 18:32:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 14:32:26 2026
Received: from localhost ([127.0.0.1]:51861 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM8Rl-0001OM-FT
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 14:32:25 -0400
Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:43434)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM8Rj-0001Lp-1e
 for 82129 <at> debbugs.gnu.org; Wed, 28 Oct 2026 14:32:24 -0400
Received: by mail-ej1-x633.google.com with SMTP id
 a640c23a62f3a-c169ae1cb26so381813766b.1
 for <82129 <at> debbugs.gnu.org>; Wed, 28 Oct 2026 11:32:23 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793212337; cv=none;
 d=google.com; s=arc-20260327;
 b=HzpSKB8tHC3WPAw1gUEtdrcjBk5TiZeYXzjrv7lr5VKvnsJcEgIKbD9vp8odCAGgon
 bftGO1zty8pb4jSdYGSpnZRwhhvANH/4RUgXh1HbGnMD/+NEOROq4Xi+fV53s6DNeDoH
 gXDxdNcQjdwU3F2XM/iX2BiqLhMaBu/HmwLRo6S3JeDkqP7uU6Uws86hLc/ZrN5Vuo3t
 KXvkdYzxlmkSIOjskR5oP8VLoj4wAqX/Dviem/KsKtIMY4BgmzNwbDnSoQ7+rkdPXQsJ
 uMIO0cMs5h0lmzAwYd1JVHl5VswOdqzuoLlwnq6ActKmKh26Q9/jVv48Khpg2dutNkxK
 B2OA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:dkim-signature;
 bh=LCt9RZ0Y8xGte8lmM2F1Kxl6d/UzrHcHu0Xd4tHMN7E=;
 fh=rZVLfeAjH9Jaxl0zxSiWU/oQPMCJw28webqnTwngLb0=;
 b=KIUV1hkeJrrAxG4UqGy3OGcyXRbEn2dwdq8Lj1Pt4Zsiaex3AtXlgy2lMkcHrk3QuM
 hE5CAnkbGYhnnFdBb0CLBmfuSZosvXJ7HVNJ6GAxCOLt6ymRCwB9kC4xh8Ar8PeNv6fS
 7DTjKUm5De+930KZm3JMUYSj2/vIVwVV/IvyyMGZXgSKj0gaxanI59E97fgUdHMBo1C4
 OYSzCNNOcEM2eK4Pyql41yukhttvImcalSyEhVcOZHsE+YLDFXHfmo6lsxJLNMfKm0JZ
 iPWujcm2dKCMbQ3oyIM3i0Xu7IOgRxLSwFUhWyQx6DELCh7zS2dQ5lEMKX8nbp6Ue4w8
 vUiQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793212337; x=1793817137; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:cc:to:subject:message-id
 :date:mime-version:references:in-reply-to:from:from:to:cc:subject
 :date:message-id:reply-to:content-type;
 bh=LCt9RZ0Y8xGte8lmM2F1Kxl6d/UzrHcHu0Xd4tHMN7E=;
 b=xGXV1ySZGiVF82T/fiA4Cr81ODUzlfkryk7WAS8oHKOXW7rCvg4SThfsDo2JMskOtH
 Td4NIasbWsmFO+lGIiUiKyiZKF2VRxFfcbh7Y091HqS177mx+OL/IHkfTJRCKOvu0l3i
 QmaRXJwHCe0NNb1ZSYRN1/afhmbH8MciLP36oE14wiObQhD1J6XjLBoo4prPrfZ70412
 5K1BpgbzS+pWw8uBYMJ7I4O9F/46HwXiU9FBDJ2cwXe1p8LU7D1ueLWOh1qBIauZ/KiQ
 bn8zzMRymubqT8JUpujBC5AO7+slTi/w4kTqvjnFh3GRuGALF+02A0KnhfyHtl7QXoqh
 AGoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793212337; x=1793817137;
 h=content-transfer-encoding:content-type:cc:to:subject:message-id
 :date:mime-version:references:in-reply-to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=LCt9RZ0Y8xGte8lmM2F1Kxl6d/UzrHcHu0Xd4tHMN7E=;
 b=hMJsYGhmlTKyIuobEKfB3h9INxGxSFlfSoRPvAG66r5jcOlQRPhLCoLxlb2JeFTq/J
 nnkz0uSpZzHI3OXASZDq5XU7n7QX+vpLfHSUSpW0m3M+mwkKMqBPQWrHAV/EXYtbve0j
 msEQtJ5UJAgjHQ/236FH9BxKk575QTFREDQZ30Rgs6Y/hs3m3fVxzxrrEicbRwVNlLMA
 rjmfv9GCE2dXhGKfmwMTv4J/promzA+07UIVk8/7i6CuYzsCApje+0QkuTYe30dyO1tO
 oOyuOSIUxOZW8bAZyes+CO6yn+aFSfsBjQMLOCSX70QNEjY37v/VbN0BV7TTVTyKXUai
 nTSw==
X-Gm-Message-State: AFq9FYIou3lU3YgJYReDtI9CjnB4jfAoMtpei3glL/BPqHivJ+4r+288
 fT4DYEGiohfFfK8zeXrPZ4WG6jrS1p9EK0bj1bxoMDuwq48yJvVP5rpUEmLDU2dciuBkWjLHLFX
 MCnI0j6p67Kk9dw1jBn03OA6xddVCN9qXrw==
X-Gm-Gg: AYBFou2bOPPkpBx5QPpTNYm42+TNrtJEYhYOpDG2BbWO0v3mSYj9IIdeDJpYq2DhIHO
 ObzpM/aRIKTHZ1K2MAqJFFUIhsoyQdfTwsrwtLkl6M6s/BZ3HNdF1gLHilBnF558VKKMdl6kglw
 //RigrNaNaHSCxkrMV3s3B3RhoFAy6WmYCuemcVDF8zBJKXmuBGf+vnBNG5WhrB6UK8geo7HBOk
 H7mVrP0jGpbJ5C9vcFXW4coYcYVSCzfD+QBXvBD0JwKrY4fB2j2k6ZGjfYInWV0+JHabNsa3Jcv
 VXQIEYDYiSm1kMDpkFE5/DU4NRB9ue35tRHbECq+k8PRBQjGC+zqnRMEe4Wg0DYD5bF6j7INw53
 9qIyk28qrhuCW2/CZIyS9/Ecx06FuxqVZO8efsubHE00MGTAsA7P3aP+V1MJbn5+f09iAEW1hMa
 2iY35gpoKyja/GlFM=
X-Received: by 2002:a17:907:3f25:b0:c46:9711:e30e with SMTP id
 a640c23a62f3a-c49d14dbc5emr31092666b.29.1793212336505; Wed, 28 Oct 2026
 11:32:16 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 14:32:15 -0400
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 14:32:15 -0400
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <86y0bhwuyk.fsf@HIDDEN>
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
 <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
 <86y0bhwuyk.fsf@HIDDEN>
MIME-Version: 1.0
Date: Wed, 28 Oct 2026 14:32:15 -0400
X-Gm-Features: AclHuK93lW9qvFYl9vIHR2SlmVRWob535NYtt3UDIwLNBurOcCojpcdPii4nBvo
Message-ID: <CAOR1sLwW5u=5bTLDEavn2aQdh5a5k=P7miNieGVQKf57Bp1+Zw@HIDDEN>
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii writes: >> From: समीर सिंह Sameer
    Singh >> Date: Wed, 28 Oct 2026 13:54:31 -0400 >> Cc: 82129 <at> debbugs.gnu.org
    >> >> Eli Zaretskii writes: >> >> >> From: समीर सिंह Sameer
    Si [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:633 listed in]
                             [list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
                             headers
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (lumarzeli30[at]gmail.com)
  0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
                             in digit (lumarzeli30[at]gmail.com)
  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
                             lines
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=
=E0=A4=B9 Sameer Singh <lumarzeli30@HIDDEN>
>> Date: Wed, 28 Oct 2026 13:54:31 -0400
>> Cc: 82129 <at> debbugs.gnu.org
>>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>> >> From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=
=82=E0=A4=B9 Sameer Singh
>> >>  <lumarzeli30@HIDDEN>
>> >> Date: Wed, 28 Oct 2026 22:05:54 +0530
>> >>
>> >> Some complex fonts can expand a small number of characters into dozen=
s
>> >> of glyphs, for purposes such as collision avoidance.
>> >
>> > I'm curious: what is "collision avoidance" in this context?  And how
>> > those dozens of glyphs "avoid collisions"?
>>
>> I too am not terribly familiar with the techniques involved in glyph
>> collision avoidance. One of the font designer states that emitting such
>> a high number of glyphs is for the purposes of kerning. See:
>>
>> https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-1=
9247193
>>
>> --8<---------------cut here---------------start------------->8---
>> Most of the extra glyphs are used for kerning, and no, we aren't
>> currently removing them. It occurs to me that that might help with the
>> Word problem as well as other software like Emacs. I was afraid that
>> removing them would be a performance hit.
>> --8<---------------cut here---------------end--------------->8---
>>
>> Another comment below states:
>>
>> --8<---------------cut here---------------start------------->8---
>> 53 glyphs for two characters is a bit unusual, but it has to do with the
>> width of the final beh form.
>> --8<---------------cut here---------------end--------------->8---
>>
>> https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-1=
9247384
>>
>> Maybe look at Heading 1.1 in this pdf to understand the challenges in
>> Nastaliq font design. It discusses why kerning is necessary for the
>> font, and what glyph collision actually looks like (Figure 6).
>>
>> https://tug.org/TUGboat/tb29-1/tb91gulzar.pdf
>
> Thanks, I will study those.
>
>> >> +	  ptrdiff_t n_glyphs =3D XFIXNUM (n);
>> >> +	  if (n_glyphs > 0)
>> >> +	    break;
>> >> +
>> >> +	  if (n_glyphs < 0)
>> >> +	    {
>> >> +	      ptrdiff_t needed_size =3D - n_glyphs;
>> >> +	      if (needed_size > 1024)
>> >
>> > Why 1024?  The GNU Coding Standards frown on arbitrary limits.
>>
>> The number is indeed arbitrary. What do you suggest instead?
>
> For starters, why do we need a limit at all? why not let it be as
> large as PTRDIFF_MAX, for example (which is the maximum the underlying
> architecture can support)?

Thanks, I will use PTRDIFF_MAX instead.

>
> Also, why did you enlarge the loop count from 3 to 6? is that perhaps
> a left-over from your original attempt to support more resizes?  If
> so, this is no longer necessary now, is it?

I increased it specifically for the Uniscribe shaper in MS
Windows. Because ScriptShape does not tell us the glyph length it
requires, and Microsoft explicitly advises us to retry with a larger
buffer. (https://learn.microsoft.com/en-us/windows/win32/api/usp10/nf-usp10=
-scriptshape#remarks)

But if this shaper is no longer being used in Windows, then I guess the
increase in loop count can be reverted.

--=20
=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 28 Oct 2026 18:17:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 14:17:51 2026
Received: from localhost ([127.0.0.1]:45566 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM8De-0006AH-TF
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 14:17:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35024)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xM8Dd-00068n-Ah
 for 82129 <at> debbugs.gnu.org; Wed, 28 Oct 2026 14:17:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xM8DX-00027G-79; Wed, 28 Oct 2026 14:17:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=4IQp4WFsq21zmZffr0P2n57ai0siFfSuACUS8Xd4eFI=; b=hdcGklyzO/6AE86CTLhl
 aoHYD5MmcJvATT6yaJpWRVK4RoFXUX5oIk9DkedEj/f4hHDNeFuAcebJUVU8VGdsyXE+tsGFYnuqT
 NwMDLKFux8uBiDcBLzncskSXS2WcrVTRButJYxks0YFDgBeSPhPqPfhLEoLeaL2mBml+CVAmdwNuc
 vEvG3+jvPrwevT2hQAYVbl2ZwBZuorCOZdNRH3dgHrw4cTChhkJjsWONbca96+lkUlw9uPAl63c+/
 araxi60xSu8Tn1CI5+8DgOJ0B8FZADD5uiXFhWtHKErz5TVOw39Ctnx4r5YC41+GKv5Av7W0/PQOl
 iD6KVa4uY4sRqQ==;
Date: Wed, 28 Oct 2026 20:17:39 +0200
Message-Id: <86y0bhwuyk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
 (message from =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuQ==?= Sameer Singh
 on Wed, 28 Oct 2026 13:54:31 -0400)
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
 <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: समीर सिंह Sameer Singh <lumarzeli30@HIDDEN>
> Date: Wed, 28 Oct 2026 13:54:31 -0400
> Cc: 82129 <at> debbugs.gnu.org
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: समीर सिंह Sameer Singh
> >>  <lumarzeli30@HIDDEN>
> >> Date: Wed, 28 Oct 2026 22:05:54 +0530
> >>
> >> Some complex fonts can expand a small number of characters into dozens
> >> of glyphs, for purposes such as collision avoidance.
> >
> > I'm curious: what is "collision avoidance" in this context?  And how
> > those dozens of glyphs "avoid collisions"?
> 
> I too am not terribly familiar with the techniques involved in glyph
> collision avoidance. One of the font designer states that emitting such
> a high number of glyphs is for the purposes of kerning. See:
> 
> https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-19247193
> 
> --8<---------------cut here---------------start------------->8---
> Most of the extra glyphs are used for kerning, and no, we aren't
> currently removing them. It occurs to me that that might help with the
> Word problem as well as other software like Emacs. I was afraid that
> removing them would be a performance hit.
> --8<---------------cut here---------------end--------------->8---
> 
> Another comment below states:
> 
> --8<---------------cut here---------------start------------->8---
> 53 glyphs for two characters is a bit unusual, but it has to do with the
> width of the final beh form.
> --8<---------------cut here---------------end--------------->8---
> 
> https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-19247384
> 
> Maybe look at Heading 1.1 in this pdf to understand the challenges in
> Nastaliq font design. It discusses why kerning is necessary for the
> font, and what glyph collision actually looks like (Figure 6).
> 
> https://tug.org/TUGboat/tb29-1/tb91gulzar.pdf

Thanks, I will study those.

> >> +	  ptrdiff_t n_glyphs = XFIXNUM (n);
> >> +	  if (n_glyphs > 0)
> >> +	    break;
> >> +
> >> +	  if (n_glyphs < 0)
> >> +	    {
> >> +	      ptrdiff_t needed_size = - n_glyphs;
> >> +	      if (needed_size > 1024)
> >
> > Why 1024?  The GNU Coding Standards frown on arbitrary limits.
> 
> The number is indeed arbitrary. What do you suggest instead?

For starters, why do we need a limit at all? why not let it be as
large as PTRDIFF_MAX, for example (which is the maximum the underlying
architecture can support)?

Also, why did you enlarge the loop count from 3 to 6? is that perhaps
a left-over from your original attempt to support more resizes?  If
so, this is no longer necessary now, is it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 28 Oct 2026 17:54:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 13:54:42 2026
Received: from localhost ([127.0.0.1]:36311 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM7rF-0000zm-Lb
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 13:54:42 -0400
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:53490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM7rD-0000yE-Pc
 for 82129 <at> debbugs.gnu.org; Wed, 28 Oct 2026 13:54:40 -0400
Received: by mail-ed1-x532.google.com with SMTP id
 4fb4d7f45d1cf-6b488586facso1695527a12.2
 for <82129 <at> debbugs.gnu.org>; Wed, 28 Oct 2026 10:54:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793210073; cv=none;
 d=google.com; s=arc-20260327;
 b=bXluaM+qf0IcRfMBT9ahAxgI0TX11vobbCy4jQrygqZoFqPXjReDVdM3itNbmTvb2z
 inMtXWeiYST//i1W/3RhX3MhT0VET3mpW2PQPlqfnkr3/h+4FuWDGkPiwcaiUMjsZguk
 kbRdlZdmpmiSdJmNTHQ7Ag7j8/o2L83nLjnf/ptx4xlkaVg1g73kNTW0DborrFXLemPX
 nQmdg+c//4PD+0RrmN/nGLC5Y11pVae1s8Xxkx3SZv329Vgg+X8s7HsnVT+MInwEwMDt
 WS0SghlCFhuueM4U0/u9liXn5NF6Dn4yx523AMUhseNqnfx6+v7Pm7Wmvp9aU/WljlKB
 GnaA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=content-transfer-encoding:cc:to:subject:message-id:date
 :mime-version:references:in-reply-to:from:dkim-signature;
 bh=bBMFJ3+C2vZOAY+98Vc2Vjd6NyM+ghKYH+OUN13Qrus=;
 fh=rZVLfeAjH9Jaxl0zxSiWU/oQPMCJw28webqnTwngLb0=;
 b=dyR1ThOG/9gOdlOliNwKYg7Xe600y7lTm2rcoW0LRtXBZxOVX+fp5Cm1/CMqCCaTn0
 VieLzfuWK4bIz8jmGIQlqwPaoqXCCcGCsxv8c76dgZbJ4YwcCvtpn7Q/YwmmbYdfsVIK
 /ZwUOv0mZ/j/XBD27HSCK9d2Ntd8ha5se8ieIEekxEJbJcJ7GQxwLbxXuqpIXEk9teRo
 /rLMfs2Z/DIrZ7oijrxJjP7YmxVshvglRzD7rdYUULKDjhjvoFMQ3PpLmbzgf/aIuCSy
 kvlJ8IxOePgkPWWsWoM9EX85vlyRwvvqEOQGQ/vblqAWKYZ3LI1GyS8U20CPissC6aZh
 WiuQ==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793210073; x=1793814873; darn=debbugs.gnu.org;
 h=content-transfer-encoding:content-type:cc:to:subject:message-id
 :date:mime-version:references:in-reply-to:from:from:to:cc:subject
 :date:message-id:reply-to:content-type;
 bh=bBMFJ3+C2vZOAY+98Vc2Vjd6NyM+ghKYH+OUN13Qrus=;
 b=vvWmjds8JYH+0cGgKzFCrmEXQH670OxqiGWfW00WKoqwL6XnHUivw7svridplFtP0u
 +DI5hWwSG4dvZdRFzVp+DMjrvMvt7PC/3xtgVJIV7q9MmJbFNeR1XSePW7OZvJYAnSJX
 O0TRIe21d553q+O/M4ERhYnDt7uXsilvWiH6h32SLi6dgvO+neUxxGT8utCKFxRAlbLD
 uTSB63axAjyWaX3mD4VPQ8bfyDY4vsDW30Akmm3jGRFvkohuCBFIwJAE8R2PwTvGKpEj
 lIaYqVIXYhafNDK7XImMtwyiORpMzqTlsJpHwZ8btl6tRSbADVCeqnFhLK7/3MXSOZGD
 OOug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793210073; x=1793814873;
 h=content-transfer-encoding:content-type:cc:to:subject:message-id
 :date:mime-version:references:in-reply-to:from:x-gm-gg
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
 :content-type;
 bh=bBMFJ3+C2vZOAY+98Vc2Vjd6NyM+ghKYH+OUN13Qrus=;
 b=RcMaSz756F1iOq7Zn+QVHDJPVh96/Ia5XKUGtAN8oqYij2jEzlQ0b5LrkamrTKr9Ft
 mFtWgMkm8nT3yImAJE2Ejje/I588ApRqwpooIJOiCjhHmFp+Z3in4SP0FKZjd+n1d6gm
 k398T1eZq5SbR+jO3ZdR1YMsOisfWAh0eBWF5e+MDk9GKb5gRfrJSAZ9QfRIf0sHXaXw
 ez/gk9SZEyC7Qir8a6WS95FGjNZtMhacEGh2Yq8Qp/1mChbHHOEAegQTfXP+YphDKbzm
 2igjPHN5wX43QXnLUsyfsQ3iWQ82lPNTnaes2xvwppeOd81r7k9IYKOTmKvCKVfnIKff
 186w==
X-Gm-Message-State: AFq9FYJt9aEYgWdtxtEyvakoO2s+qRl4fWL6v7EcqBpbhxY9/lYgDA4G
 0ZEsLcYOigBk1XWPsxLALPjcscq5mJw35XrqFBrawRzsw7ks37nhUJc3ms1c42PSWhSvOGICEXe
 6Kfst8M11S+9VjG5LYCLdANWYMtjdBGujjg==
X-Gm-Gg: AYBFou3POmOQtb+Z5n53JwVQI1dK2+/Yx5MZe/XxrUXDmCUbAc8/MLRssOA2Db3bNo+
 Nv4BzXZkPAETCJjiv68EUYEBcVEoEQ1kQlyHFrrnIIuo042N5awep5RUPCW3nK4yeBJe0q106iI
 KcPC0/+GtTvOgVmyr31MvpYMzVt2t7XesOENYqY55AQajvmNG7xnzSCGPZLUV9g3xa30MOjWdpq
 fsA4LhD2NNgM6sp5A6bzakBsHgOwt5bfoCENeI8ENYAGPqKQuDE5dw1cp2vya0dNlaN0UV0mZlc
 JoTntQOys+GVIxcUbNhMcTEGTF8pYJ+bqWHUsPPMt8fVv0CQkSroMoRjD5NB8V7z75vWaBr05W/
 Uilrbxzz2YAJCGApPht+FiUgYih8BtkJtNlhKu5Lbnp1f3hPmjTtrd7+xx+w0MCtvWQAi5Q==
X-Received: by 2002:a05:6402:5489:b0:6b4:201f:17b6 with SMTP id
 4fb4d7f45d1cf-6b49cb4f816mr2250900a12.6.1793210073261; Wed, 28 Oct 2026
 10:54:33 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 13:54:31 -0400
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 13:54:31 -0400
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <861p99yche.fsf@HIDDEN>
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 <861p99yche.fsf@HIDDEN>
MIME-Version: 1.0
Date: Wed, 28 Oct 2026 13:54:31 -0400
X-Gm-Features: AclHuK_DmH_mHxlVeBIO9lcav9yCrXSV1p7nTw8aMWsl30UFEzMZ1VHWQqcJPpg
Message-ID: <CAOR1sLwEfdi+E7ki_LOgwbVuFc4KxnShggCv5fSVkcNSnWD=-Q@HIDDEN>
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Eli Zaretskii writes: >> From: समीर सिंह Sameer
    Singh >> >> Date: Wed, 28 Oct 2026 22:05:54 +0530 >> >> Some complex fonts
    can expand a small number of characters into dozens >> of glyphs, for purposes
    su [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
                             headers
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (lumarzeli30[at]gmail.com)
  0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
                             in digit (lumarzeli30[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:532 listed in]
                             [list.dnswl.org]
  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
                             lines
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=
=E0=A4=B9 Sameer Singh
>>  <lumarzeli30@HIDDEN>
>> Date: Wed, 28 Oct 2026 22:05:54 +0530
>>
>> Some complex fonts can expand a small number of characters into dozens
>> of glyphs, for purposes such as collision avoidance.
>
> I'm curious: what is "collision avoidance" in this context?  And how
> those dozens of glyphs "avoid collisions"?

I too am not terribly familiar with the techniques involved in glyph
collision avoidance. One of the font designer states that emitting such
a high number of glyphs is for the purposes of kerning. See:

https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-1924=
7193

--8<---------------cut here---------------start------------->8---
Most of the extra glyphs are used for kerning, and no, we aren't
currently removing them. It occurs to me that that might help with the
Word problem as well as other software like Emacs. I was afraid that
removing them would be a performance hit.
--8<---------------cut here---------------end--------------->8---

Another comment below states:

--8<---------------cut here---------------start------------->8---
53 glyphs for two characters is a bit unusual, but it has to do with the
width of the final beh form.
--8<---------------cut here---------------end--------------->8---

https://github.com/silnrsi/font-awami/discussions/36#discussioncomment-1924=
7384

Maybe look at Heading 1.1 in this pdf to understand the challenges in
Nastaliq font design. It discusses why kerning is necessary for the
font, and what glyph collision actually looks like (Figure 6).

https://tug.org/TUGboat/tb29-1/tb91gulzar.pdf


>
>> +	  ptrdiff_t n_glyphs =3D XFIXNUM (n);
>> +	  if (n_glyphs > 0)
>> +	    break;
>> +
>> +	  if (n_glyphs < 0)
>> +	    {
>> +	      ptrdiff_t needed_size =3D - n_glyphs;
>> +	      if (needed_size > 1024)
>
> Why 1024?  The GNU Coding Standards frown on arbitrary limits.

The number is indeed arbitrary. What do you suggest instead?

>
> Thanks.

--=20
=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 28 Oct 2026 17:14:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 13:14:02 2026
Received: from localhost ([127.0.0.1]:44960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM7Dt-0006wI-Nq
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 13:14:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39998)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xM7Dr-0006u5-N9
 for 82129 <at> debbugs.gnu.org; Wed, 28 Oct 2026 13:14:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1xM7Dk-0003Py-FB; Wed, 28 Oct 2026 13:13:53 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=Xk2h9wfJx7+MOYAfAaCVcycb+kQxBF2e7bgCFQgLZ40=; b=CEHL22R2vpmTCExXWvPt
 sh4ARlMyYToc1HQTr1T2XptkdL9a/FsIssb/xPGD7XD1C4bc2T7lBBDYUPHvSdsCv2PCRGE6By6Xi
 EKMoXwf1jDnFGoDDAdAHezJI74ME67wKjiEG3pz+MVAN8wddAC2XYlSFMvn2+T2q9FbpJqXanJmzW
 VXZxkLjH8ROI9itE+akGWn2tyNKrOUGECH6xAy/F+CEPohSWXBSBbgNo0wj6fFpUnPYQLlGNpIhr4
 qTuHGl6I0O3LVTTbUwcrIfKotipwOhrNMpaKO4ReJ/ssE1aB3rdttSLx9/suPfvMXRMXvIdrVfBRg
 ulMAdtiZtKpNDg==;
Date: Wed, 28 Oct 2026 19:13:49 +0200
Message-Id: <861p99yche.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
In-Reply-To: <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
 (lumarzeli30@HIDDEN)
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
 <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82129
Cc: 82129 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: समीर सिंह Sameer Singh
>  <lumarzeli30@HIDDEN>
> Date: Wed, 28 Oct 2026 22:05:54 +0530
> 
> Some complex fonts can expand a small number of characters into dozens
> of glyphs, for purposes such as collision avoidance.

I'm curious: what is "collision avoidance" in this context?  And how
those dozens of glyphs "avoid collisions"?

> +	  ptrdiff_t n_glyphs = XFIXNUM (n);
> +	  if (n_glyphs > 0)
> +	    break;
> +
> +	  if (n_glyphs < 0)
> +	    {
> +	      ptrdiff_t needed_size = - n_glyphs;
> +	      if (needed_size > 1024)

Why 1024?  The GNU Coding Standards frown on arbitrary limits.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at 82129 <at> debbugs.gnu.org:


Received: (at 82129) by debbugs.gnu.org; 28 Oct 2026 16:36:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 12:36:16 2026
Received: from localhost ([127.0.0.1]:55541 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM6dL-0005Qj-Mz
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 12:36:16 -0400
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:55783)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM6dJ-0005Oq-Bf
 for 82129 <at> debbugs.gnu.org; Wed, 28 Oct 2026 12:36:14 -0400
Received: by mail-ed1-x532.google.com with SMTP id
 4fb4d7f45d1cf-6b1ab2ad719so1500593a12.3
 for <82129 <at> debbugs.gnu.org>; Wed, 28 Oct 2026 09:36:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793205367; cv=none;
 d=google.com; s=arc-20260327;
 b=tBgPAMBuaGrBBtDDghTXHYv6K1EMgbuOYlPruePYkAko2OoGPGr7VJpSulyCZOjEaq
 fEBRGlybU5FQqAtg69Xaf+cge/0ZlbQvt5rLwuJSDbhBEH4FDWmgcF30GemJw+X+2yKh
 2hBYOUSAUyOnECBf/5guHb6AfMEI6+6umIoOaUj2q1hSQ6Mdp6pM9nORdYmVu7KRjAyW
 6+9xdFw31ULhlnHQKtvfNWSIILqyfyCJe66jERpWshMFipuJumFCwQS5GusyKn8dxp+z
 ad8PuPlglfPJASBi1JrkBuRKzdYNcksG44YDWD1YnfiNV4BrOOZgn4x9L5X5enZasnhd
 I9pA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=to:subject:message-id:date:from:in-reply-to:references:mime-version
 :dkim-signature;
 bh=lv/oGzPMjcye6rCYrgHU4HQJbLMGgW+DxN0A1G1jhzk=;
 fh=mPyMuLU5OpEEkWf0J8F4YLxMrJ3P7nl0AjkNYEXH9to=;
 b=kL6Y0qfem1PxjJ7nCRT3mZtw+ARRgGgdsQsdX4W002CuY8iQ/1CpJhzkFdS4BXaXdn
 jS3RrtZXlwQkKRFnqSB7ub6tf+F7IULYE0AUh8p/eedo8DaODGUxan3mLVXH/FU6EqZa
 4Hm0i/BsueyQVVxUl0lDkiQhNhMq7LVsbpco3a/kSDGDl22VCMBgrQBqMCcTx4mUG6bS
 2oLUu0IAPRboqHJhZTulKTkcgKb5AnKLn8CHvD6sTIpH55laMTWcG24orUHtfTYmZiJ+
 WwfIX+uazazjl6BSVoraB0OXyIwstSInNw5f2Cwln8TQoGcYnV5SHfKkNM3MgsaSVWYZ
 814Q==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793205367; x=1793810167; darn=debbugs.gnu.org;
 h=content-type:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=lv/oGzPMjcye6rCYrgHU4HQJbLMGgW+DxN0A1G1jhzk=;
 b=doieaJ6wGfLc/EejTxZKBnQ47kcnkxuU4RFll9xd0JUkx+Njky0v4rw/qS8HtWaGVd
 kFP0grou42FUdqf+7/eupsi6pIonytAdP0Y+UOHnx7rF/vVdTej1BaFawL293GrjbPzg
 6mVLwZ4hjjXX+TgCzK+ePbcVhH47uOdfJRfltlAdKBXtqVhnn2Y305IkLvNwherL4UnE
 dXQA2J3Xpe7l/Yd1dWz6NUYu+Enj3BKwvgN7hQXnVY43Z4HeZLAKJaPG/oMNnkouCkTH
 SJL5COoghCORwNYy4CywMuY/R75QAjZhgjfxz+EN9/bd+2dTGABjeRbNYIXMuauTNy4h
 LqQw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793205367; x=1793810167;
 h=content-type:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to:content-type;
 bh=lv/oGzPMjcye6rCYrgHU4HQJbLMGgW+DxN0A1G1jhzk=;
 b=K/QDMR87dHML8ZrohgxsooH7zxFh4SVFnyppFWfo5wAGRZnJFmPMPQfCzDm5y63KHr
 OU/4HBHjTXgYUqLlF75050qbvTtPexmWvjiUld9RHTqJyWq90sEvf5BOjaXPw60mmvXX
 ZJ1aSCGKYwEsPm6J132jO7NZF5sc7B4VgawrFMgXlTSPhOIb+ifBEXBwxyyTekvWZVxy
 8h+ETwwcekZLtgPzCZP04v7FhVi11K8K9gDIaC0Tj0R6+7ZtOx79AA9EumfcuUAAVwfl
 w1/H7TpBIQ1zaBBz6AhRIyN4I3TCb78t+WU26PA2esQDD/Nel9XdFMjYduFnwYfrblZe
 SxBQ==
X-Gm-Message-State: AFq9FYKy1HSPKBB+FBR/PyP4JmsOuXX1n4qe7fA84i1xNzJ+KwDrPrzK
 UHxZR7FBpWFhXbSvXEMhqOtFM+FYfguvfazPx487l1c2LcvXat9IhWPXLCtOGVjI5THk56GLuOY
 Af8KwWBCe7PV4O6XCMU6tQNuEFLrqCYEFrw==
X-Gm-Gg: AYBFou3njm6n28Om7J7TIaF0VlLPZiMCZPQr3lNpzUaNXwaUFqDc9nxnB17btUqlKQt
 ZhMqkpCZRSghoIOwAta32F+eK8Z9p+DmidGkmVOPXtrsyR6mPtDHCWkjB7BgQwXch4XkTJthQWm
 zWuMCEyY4ls/K2vvdCJU775l9ejLgmCCWsexOsU1Ydn7+BOnvQJH2qHVZhPp9ZLP2pFmJRbEfs6
 3aHqWmAh5KAqQPI3jL1ji/28NWRkjb8wLkd3kileMaag06orHttvkGBxDun+PUs/vmy5lUwdfaE
 VNkAbwgKZoPsvwpb3iQ+spmz6Ypnm3HOxmKZXsR1vnJbj3IG0CUnSE0YX7wPirT+DdrFVJGKMzq
 bXsjowUCmTwkMn6r0+kUFCQKp6yp5TanGMuqoJJBotW0z93BRilF9DnAahbmZBRCQ4AHLSA==
X-Received: by 2002:a05:6402:a6c8:10b0:6b4:2d6:cbea with SMTP id
 4fb4d7f45d1cf-6b49cbd2370mr1349974a12.9.1793205366517; Wed, 28 Oct 2026
 09:36:06 -0700 (PDT)
MIME-Version: 1.0
References: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
In-Reply-To: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
Date: Wed, 28 Oct 2026 22:05:54 +0530
X-Gm-Features: AclHuK-N0BKyVr0fUs5vNgZkt7V5LDHXH9tA5sXyqU_-ACKDpaytSMX4vBikQ_I
Message-ID: <CAOR1sLxu0dbJwPL89+FdQuZupF=+=LkAuE_5-O=n7y-HFwsxzg@HIDDEN>
Subject: Re: bug#82129: [PATCH] Allow font shapers to specify the number of
 glyphs
To: 82129 <at> debbugs.gnu.org
Content-Type: multipart/mixed; boundary="000000000000e1afa3065ee92867"
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  On Wed, Oct 28, 2026 at 10:01 PM समीर सिंह
    Sameer Singh < wrote: > Hi, > Fonts such as Awami Nastaliq outputs a large
    number of glyphs for a > small number of characters. See > https://github.com/silnrsi/font-awami/discussions/36
    for more details. > > I am copying [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
                             headers
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (lumarzeli30[at]gmail.com)
  0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
                             in digit (lumarzeli30[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:532 listed in]
                             [list.dnswl.org]
  0.0 HTML_MESSAGE           BODY: HTML included in message
X-Debbugs-Envelope-To: 82129
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

--000000000000e1afa3065ee92867
Content-Type: multipart/alternative; boundary="000000000000e1afa1065ee92865"

--000000000000e1afa1065ee92865
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 28, 2026 at 10:01=E2=80=AFPM =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=
=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9 Sameer Singh <
lumarzeli30@HIDDEN> wrote:

> Hi,
> Fonts such as Awami Nastaliq outputs a large number of glyphs for a
> small number of characters. See
> https://github.com/silnrsi/font-awami/discussions/36 for more details.
>
> I am copying my first message from the link above:
>
> --8<---------------cut here---------------start------------->8---
> Hi,
> I see that the AwamiPreviewB font outputs a large amount of glyphs for
> a small amount of characters.
> See:
>
> ~
> =E2=9D=AF hb-shape
> ~/.local/share/fonts/AwamiPreviewB-0.900/AwamiPreviewB-Regular.ttf
> "=D8=B3=D8=A8" | awk -F'|' '{print NF}'
> 53
>
> ~
> =E2=9D=AF hb-shape ~/.local/share/fonts/mehr.ttf "=D8=B3=D8=A8" | awk -F'=
|' '{print NF}'
> 3
>
> ~
> =E2=9D=AF hb-shape /usr/share/fonts/noto/NotoNastaliqUrdu-Regular.ttf "=
=D8=B3=D8=A8" |
> awk -F'|' '{print NF}'
> 5
>
> ~
> =E2=9D=AF hb-shape ~/Downloads/Gulzar-Regular.ttf "=D8=B3=D8=A8" | awk -F=
'|' '{print NF}'
> 3
>
> Is this intentional? Will this be resolved once the font gets a stable
> release? Because the font emits such a large number of glyphs,
> applications such as emacs fail to render them correctly, since they
> tend to be quite conservative in their estimation of how many glyphs a
> font will produce.
> --8<---------------cut here---------------end--------------->8---
>
> This breaks the font, when used in emacs. Because emacs is quite
> conservative in its estimate for the number of glyphs, retrying only
> three times and then failing.
>
> But HarfBuzz already knows the glyph buffer size, so I have made use of
> that in the patch which I will attach in the next message. Please
> review.
>
> Thanks.
> --
> =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9
>
>
>
>

--000000000000e1afa1065ee92865
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote gmail_quote_contai=
ner"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Oct 28, 2026 at 10:01=E2=
=80=AFPM =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=
=E0=A4=B9 Sameer Singh &lt;<a href=3D"mailto:lumarzeli30@HIDDEN">lumarze=
li30@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex">Hi,<br>
Fonts such as Awami Nastaliq outputs a large number of glyphs for a<br>
small number of characters. See<br>
<a href=3D"https://github.com/silnrsi/font-awami/discussions/36" rel=3D"nor=
eferrer" target=3D"_blank">https://github.com/silnrsi/font-awami/discussion=
s/36</a> for more details.<br>
<br>
I am copying my first message from the link above:<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
Hi,<br>
I see that the AwamiPreviewB font outputs a large amount of glyphs for<br>
a small amount of characters.<br>
See:<br>
<br>
~<br>
=E2=9D=AF hb-shape ~/.local/share/fonts/AwamiPreviewB-0.900/AwamiPreviewB-R=
egular.ttf<br>
&quot;=D8=B3=D8=A8&quot; | awk -F&#39;|&#39; &#39;{print NF}&#39;<br>
53<br>
<br>
~<br>
=E2=9D=AF hb-shape ~/.local/share/fonts/mehr.ttf &quot;=D8=B3=D8=A8&quot; |=
 awk -F&#39;|&#39; &#39;{print NF}&#39;<br>
3<br>
<br>
~<br>
=E2=9D=AF hb-shape /usr/share/fonts/noto/NotoNastaliqUrdu-Regular.ttf &quot=
;=D8=B3=D8=A8&quot; |<br>
awk -F&#39;|&#39; &#39;{print NF}&#39;<br>
5<br>
<br>
~<br>
=E2=9D=AF hb-shape ~/Downloads/Gulzar-Regular.ttf &quot;=D8=B3=D8=A8&quot; =
| awk -F&#39;|&#39; &#39;{print NF}&#39;<br>
3<br>
<br>
Is this intentional? Will this be resolved once the font gets a stable<br>
release? Because the font emits such a large number of glyphs,<br>
applications such as emacs fail to render them correctly, since they<br>
tend to be quite conservative in their estimation of how many glyphs a<br>
font will produce.<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
This breaks the font, when used in emacs. Because emacs is quite<br>
conservative in its estimate for the number of glyphs, retrying only<br>
three times and then failing.<br>
<br>
But HarfBuzz already knows the glyph buffer size, so I have made use of<br>
that in the patch which I will attach in the next message. Please<br>
review.<br>
<br>
Thanks.<br>
-- <br>
=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9<br=
>
<br>
<br>
<br>
</blockquote></div>

--000000000000e1afa1065ee92865--

--000000000000e1afa3065ee92867
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Allow-font-shapers-to-request-larger-glyph-buffers-b.patch"
Content-Disposition: attachment; 
	filename="0001-Allow-font-shapers-to-request-larger-glyph-buffers-b.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_mvsc5au10>
X-Attachment-Id: f_mvsc5au10

RnJvbSBkNGRiNDc3ODMzOWM2ZGEzMzM4MmJmMjA4Y2I5MzY2ZjJmMzA0Yjk3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/PUUwPUE0PUI4PUUwPUE0PUFFPUUwPUE1PTgw
PUUwPUE0PUIwPTIwPUUwPUE0PUI4PUUwPUE0PUJGPz0KID0/VVRGLTg/cT89RTA9QTQ9ODI9RTA9
QTQ9Qjk9MjBTYW1lZXI9MjBTaW5naD89IDxsdW1hcnplbGkzMEBnbWFpbC5jb20+CkRhdGU6IFdl
ZCwgMjggT2N0IDIwMjYgMjE6MzA6MjMgKzA1MzAKU3ViamVjdDogW1BBVENIXSBBbGxvdyBmb250
IHNoYXBlcnMgdG8gcmVxdWVzdCBsYXJnZXIgZ2x5cGggYnVmZmVycwogKGJ1ZyM4MjEyOSkKClNv
bWUgY29tcGxleCBm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ywgTGlzcF9PYmplY3QgZGlyZWN0aW9uKQogCiAgIGdseXBoX2xl
biA9IGhiX2J1ZmZlcl9nZXRfbGVuZ3RoIChoYl9idWZmZXIpOwogICBpZiAoZ2x5cGhfbGVuID4g
TEdTVFJJTkdfR0xZUEhfTEVOIChsZ3N0cmluZykpCi0gICAgcmV0dXJuIFFuaWw7CisgICAgcmV0
dXJuIG1ha2VfZml4bnVtICgtIGdseXBoX2xlbik7CiAKICAgLyogV2UgbmVlZCB0aGUgY2x1c3Rl
cnMgaW4gbG9naWNhbCBvcmRlci4gICovCiAgIGJvb2wgYnVmX3JldmVyc2VkID0gZmFsc2U7Ci0t
IAoyLjU2LjAKCg==
--000000000000e1afa3065ee92867--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Oct 2026 16:30:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 28 12:30:25 2026
Received: from localhost ([127.0.0.1]:53022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xM6Xg-0003rS-QF
	for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 12:30:25 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:50296)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM6Xf-0003oI-4O
 for submit <at> debbugs.gnu.org; Wed, 28 Oct 2026 12:30:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM6XZ-0005zN-AR
 for bug-gnu-emacs@HIDDEN; Wed, 28 Oct 2026 12:30:17 -0400
Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <lumarzeli30@HIDDEN>)
 id 1xM6XX-0007Ex-JY
 for bug-gnu-emacs@HIDDEN; Wed, 28 Oct 2026 12:30:16 -0400
Received: by mail-ed1-x529.google.com with SMTP id
 4fb4d7f45d1cf-6af9a9451daso1315699a12.0
 for <bug-gnu-emacs@HIDDEN>; Wed, 28 Oct 2026 09:30:15 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1793205014; cv=none;
 d=google.com; s=arc-20260327;
 b=nhonCNkkO+MJCDZaL8RBT0ska6OT1xGMUiaL+DKso+kKDjTYrnBo3dvezCH2DQS1Fn
 tPj8wrxA89YSuQA0LGaLw/EgMUd1TPnXUTQKwF+vIxYSU/UFDsTSCt91pU5e0lVEgBhM
 JbG+yN4/TVT11MojqfObSfEawRcCrrd7dlMXHP/D1EVk5iSIu+keDwtIpeYH5I3bFoUe
 CjTub9yuPlQAG1d7sS1woMF4PqIQn5NrQfkMRsaWQAqoeS2c8ZlOsk2bVD3t0d8dmud2
 4kOI+dYRfCiS1WAdhaFMEvkE6f+4elIFuQqWAhVzHVTpm/jsLMtte0xbsJbLk3R4L5/s
 eBgw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=content-transfer-encoding:to:subject:message-id:date:mime-version
 :from:dkim-signature;
 bh=tuOB1UIIfSSWWgyQEVvVIdgPHLUxsmBzZ2dI+f52qmY=;
 fh=+R8aXOFVnuBbN1nRXJJI02Ia//JUQJmLW/Uk/VaA0ag=;
 b=ECTcFv6l8cX8jQUpptIuxt7BgvMnFGW2VVUhF7fzAtmUefP8WHRVxbPAQozj2pCFzi
 XrqXMPnwiXZmkeQu7gcblImsFYhaq+IxpUVDJK+rDZdY/AnPnbHd8aaO4byxVX0IQvr2
 T5t9I+qaRjelOVwmo41oFP4Ls7J8sl0O4jF/HjlYU0ah/4cmZ7mxjecV07z+Kb/Pi4p4
 v/x6RatorbMzJRMQ27X2MSDAD/S3gDhIH16m7YTq3ccB2DpKDu3PJ3G0c8fqTn70GtDb
 9HIVo8EF1gPZ/kemeJZ0JKQhmer9jjn4TwOAT4fWx4N99V7AfiBlYhOlN/gwIvoV4fVJ
 NsXQ==; darn=gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20260707; t=1793205014; x=1793809814; darn=gnu.org;
 h=content-transfer-encoding:content-type:to:subject:message-id:date
 :mime-version:from:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=tuOB1UIIfSSWWgyQEVvVIdgPHLUxsmBzZ2dI+f52qmY=;
 b=cGfzDO0js4KsVAI9poYkvi3S048lqVR4y2CsVVlVxG3+J3pAp5J2DSDsypeYjMOI2l
 HBeQ2yvWOWp0MT1159iqeX4X8RXcSfOClysMEUEoaQg2GT5i6HeYJw6jdQ+cV51R6OzI
 i3iUyq1z/zY+EY5XD4RfIFKfFaXrhWarLSp367Ds3UlsPiBvvXVi9meBjQUbNcYqlsGX
 Tscq89TEdxjq+FxQfiyvWEKlvFroGEYff9RHkAQAIWhjYKo+uc7PVGADD8g/ofHWtOu/
 NP53xVHDQ/1pUfN8mcv4iRTo2a78h5xagHWm5zPgbz838Y0vviw748cse3mPBl6TXKbK
 nDEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1793205014; x=1793809814;
 h=content-transfer-encoding:content-type:to:subject:message-id:date
 :mime-version:from:x-gm-gg:x-gm-message-state:from:to:cc:subject
 :date:message-id:reply-to:content-type;
 bh=tuOB1UIIfSSWWgyQEVvVIdgPHLUxsmBzZ2dI+f52qmY=;
 b=vzdwalMGvnjXjtthyNyJJ4OCEjQ8vl+u2Uw0O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 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 12:30:13 -0400
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 28 Oct 2026 12:30:13 -0400
From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?=
 <lumarzeli30@HIDDEN>
MIME-Version: 1.0
Date: Wed, 28 Oct 2026 12:30:13 -0400
X-Gm-Features: AclHuK-0KpzNB3h3oZeh89_BVZkKmZU9bANrKI3UmCP0447koF1azvubfFAeZag
Message-ID: <CAOR1sLzGNS-gteWvfwGP-EuQ=pfLX9z89iyXQA9V9aZuC5hryA@HIDDEN>
Subject: [PATCH] Allow font shapers to specify the number of glyphs
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::529;
 envelope-from=lumarzeli30@HIDDEN; helo=mail-ed1-x529.google.com
X-Spam_score_int: -7
X-Spam_score: -0.8
X-Spam_bar: /
X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.2 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Hi, Fonts such as Awami Nastaliq outputs a large number of
 glyphs for a small number of characters. See
 https://github.com/silnrsi/font-awami/discussions/36
 for more details. I am copying my first message from the link above: 
 Content analysis details:   (2.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
 headers -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (lumarzeli30[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (lumarzeli30[at]gmail.com)
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
 lines
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hi, Fonts such as Awami Nastaliq outputs a large number of
    glyphs for a small number of characters. See https://github.com/silnrsi/font-awami/discussions/36
    for more details. I am copying my first message from the link above: 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2001:470:142:0:0:0:0:17 listed in]
                             [list.dnswl.org]
  1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
  1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
                             headers
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (lumarzeli30[at]gmail.com)
  0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
                             in digit (lumarzeli30[at]gmail.com)
  0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
                             lines
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Hi,
Fonts such as Awami Nastaliq outputs a large number of glyphs for a
small number of characters. See
https://github.com/silnrsi/font-awami/discussions/36 for more details.

I am copying my first message from the link above:

--8<---------------cut here---------------start------------->8---
Hi,
I see that the AwamiPreviewB font outputs a large amount of glyphs for
a small amount of characters.
See:

~
=E2=9D=AF hb-shape ~/.local/share/fonts/AwamiPreviewB-0.900/AwamiPreviewB-R=
egular.ttf
"=D8=B3=D8=A8" | awk -F'|' '{print NF}'
53

~
=E2=9D=AF hb-shape ~/.local/share/fonts/mehr.ttf "=D8=B3=D8=A8" | awk -F'|'=
 '{print NF}'
3

~
=E2=9D=AF hb-shape /usr/share/fonts/noto/NotoNastaliqUrdu-Regular.ttf "=D8=
=B3=D8=A8" |
awk -F'|' '{print NF}'
5

~
=E2=9D=AF hb-shape ~/Downloads/Gulzar-Regular.ttf "=D8=B3=D8=A8" | awk -F'|=
' '{print NF}'
3

Is this intentional? Will this be resolved once the font gets a stable
release? Because the font emits such a large number of glyphs,
applications such as emacs fail to render them correctly, since they
tend to be quite conservative in their estimation of how many glyphs a
font will produce.
--8<---------------cut here---------------end--------------->8---

This breaks the font, when used in emacs. Because emacs is quite
conservative in its estimate for the number of glyphs, retrying only
three times and then failing.

But HarfBuzz already knows the glyph buffer size, so I have made use of
that in the patch which I will attach in the next message. Please
review.

Thanks.
--=20
=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9




Acknowledgement sent to समीर सिंह Sameer Singh <lumarzeli30@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#82129; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 29 Oct 2026 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.