From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31397 invoked from network); 20 Aug 2023 15:46:30 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 20 Aug 2023 15:46:30 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3D5FD482CAC for ; Sun, 20 Aug 2023 17:45:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z5I-ueIXDRPe for ; Sun, 20 Aug 2023 17:45:51 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id A061848297D for ; Sun, 20 Aug 2023 17:45:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EEEE54822B0 for ; Sun, 20 Aug 2023 17:45:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dVnYiNmpZJS8 for ; Sun, 20 Aug 2023 17:45:13 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 96ABA482296 for ; Sun, 20 Aug 2023 17:45:13 +0200 (CEST) X-KPN-MessageId: 6a395169-3f70-11ee-87d3-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 6a395169-3f70-11ee-87d3-00505699b430; Sun, 20 Aug 2023 17:44:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:from:to:subject:mime-version:date:message-id; bh=pm3FiUsQWMwQva7xY2VIvmd2eitGb8AW+1p2uob2Rrc=; b=GBv3aHdmO27nertK2cQMgr+sISjO7W8xDczSeX4atv0sZyUUQ8QuTDNlh8VxQGk5enTLuh0igsiyp Dl8oeKKCJLKy+MJvlYGve+rCki20HpE0WSNVeEEODonYrGoMproFgPFldmwn0ZIvLW01yG4S0mvoS9 uqkfITLy0LJ3inj9vkh/gY3UX5x3a+p65bhRFOrs89DDQ3SN3jUOb2t9xMXwhkiPNPAnFxKbs4H4v5 AbVHjm6bfV/qlVaE78EHZ8XASBAWtHxeacSATAaN+ARwBW8LGlhOIFOTHiiIsZSZA5g9XxTESap+ak qmIMQk4UXqNDD7EhIzYVk97uxYhxQgQ== X-KPN-MID: 33|JAa9EYxB+ghYV/aumunt2OmAIhI1gyGnPDIGXvCcT9hWrqGUd7dtqj9mgdyKUAH qjDGSxekyBuK49wRIiNBZ/xM6cqAhr0wBRQvV1aM6/ng= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|6663P9Ttdcn/c7ixadHquG7U/HrGkEi30ucc6PrclUdPuXg2N9nE8Ne/z7sDYzF K5ZYvMP30sAyTRJDK7CcCEg== X-Originating-IP: 213.125.29.162 Received: from [10.100.1.105] (d57d1da2.static.ziggozakelijk.nl [213.125.29.162]) by smtp.xs4all.nl (Halon) with ESMTPSA id 8d042af2-3f70-11ee-8756-00505699d6e5; Sun, 20 Aug 2023 17:45:13 +0200 (CEST) Message-ID: <7bd5c213-c57c-78e8-60a6-e4c8099a06cf@xs4all.nl> Date: Sun, 20 Aug 2023 17:45:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: "Hamid,Idris" , mailing list for ConTeXt users References: From: Hans Hagen In-Reply-To: Message-ID-Hash: UDM4WI3NYEE3PEH5UK7XI5JUDNXBUPTQ X-Message-ID-Hash: UDM4WI3NYEE3PEH5UK7XI5JUDNXBUPTQ X-MailFrom: j.hagen@xs4all.nl X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit On 8/20/2023 5:33 PM, Hamid,Idris wrote: > Dear gang, > > For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: > > ============== > \startluacode > local function squeeze(tfmdata) > for k, v in next, tfmdata.characters do > v.width = 1.75 * (v.height or 0) > v.depth = 1.75 * (v.depth or 0) > end > end > > local specification = { > name = "sqtfm", > description = "test", > manipulators = { > base = squeeze, > node = squeeze, > } > } because much more has to be done to satisfy the backend (liek advance with and such) .. you cannot just change dimensions on the fly for characters that could potentially be shared just as you can't change glyph dimension mid document Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________