From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Erik_Pr=C3=A4ntare?= Newsgroups: gmane.emacs.help Subject: Pixel specification for ascent in image descriptors Date: Fri, 19 Jul 2024 13:35:49 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2192"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 19 22:23:57 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sUu8y-0000Rw-HB for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 19 Jul 2024 22:23:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sUu8r-0002GS-Hp; Fri, 19 Jul 2024 16:23:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sUnmH-0005K1-1k for help-gnu-emacs@gnu.org; Fri, 19 Jul 2024 09:36:06 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sUnmF-000556-Dd for help-gnu-emacs@gnu.org; Fri, 19 Jul 2024 09:36:04 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52ea79e689eso2581511e87.1 for ; Fri, 19 Jul 2024 06:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721396161; x=1722000961; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jPwq30kS9OLSV9L2M1tPxyhhzoEk88r0I/zV2PKGO10=; b=Ll+1D36vNGiBzP2Qno7sSySE0YFtayN1q8TyBNZ812rYtJ/s+COm7A0BHLgb26QoXp hFBk0IhOCQPUTpUKOg2o0iyISI0AMe0KZ80wFNv2rJjc982z23sTCqPPgblwYQlN5qjk nsGnOBMhhUCpWPXA5Ypf/e7ez5FlXB86BKXQpc7NcN/mFWzTFZS+Eof9a+YnEM9tjpMX vWDzgWIriVFKhEr4BV5mcIGQZqUlOaBS59Vd9aDoDGsH4m4V6E+5HA0nquccjClFU2y+ b0k6cIbvk20wymh+4AnVu9Hh46DDs5yEuK2t7+Kam/KgNhSd5N+qpHFvgIz0XG7XcoRr C/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721396161; x=1722000961; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jPwq30kS9OLSV9L2M1tPxyhhzoEk88r0I/zV2PKGO10=; b=qvbZ15Wy3stZBsJmeGRNFjDofEOkivAebEQu3+G3VgvPGcjhcOMIWdNP264L/Xef+1 UaprUnG6zIWP6E9jtDFDdOF0p0dbWFlz/iVQUQO7tWhfYTJHASi4RZPI7NkgWE9l33NX QSx1TQjpMnBLnvg6ZYuj+JES7tyUmRMvPN7FDyIGpsi6QieHKa1X6P1b23geLOe6ZCuo ZZNnFLhm78rkuowF6fF9PZNGN7Nkgo2IVUFQkzGVyW7TlewVNy4BTMxTyHQPuuzhLTcO T4hy6Iu535nC2CTvbCf09XQZx6NQKqRVYp6IHNhYhonimx3RGUTkhZMDmYm10OU9om54 Ac+Q== X-Gm-Message-State: AOJu0YyGOKAHMBNDJvMz5ekgPlm81vtYEmlZ1IsThww3kG3OZd6bNVLd SMtjxGeV7SFcfOcDK23ZYjjRJ0yKwoOdu+uvcR9hkKwvmsOpedmGyGFpSe83MlcTTQr/lmTISPN tYUxe9+trEzOalug3gvJ33NWyy3v2Ng== X-Google-Smtp-Source: AGHT+IGtcSJOJG4wtpSYuoroFRi9T8LodHhp2uSq0rt4hEEk0HQklaZvHc4oBoFett52x5o79klFV6A2CGCGDDncvR4= X-Received: by 2002:a05:6512:3f18:b0:52c:deb9:904b with SMTP id 2adb3069b0e04-52ee53d7fd1mr7026146e87.38.1721396160840; Fri, 19 Jul 2024 06:36:00 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=erik.prantare@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 19 Jul 2024 16:23:48 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147279 Archived-At: I am working on a package which requires overlaying some glyphs with an svg image. This image should appear as the original glyph, but may be taller than one as I am rendering small indicators above them. To appear as the regular glyph, I need to specify the :ascent image property to be the same as for the glyph it replaces. However, this seems to only be possible to do as a fraction of the image height (expressed as an integer percentage). This seems to sometimes cause small jitters from off-by-one pixel errors. Is it possible to specify the ascent of the image in the amount of pixels instead, similar to how one can with pixel specifications for spaces?