From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Elijah G." Newsgroups: gmane.emacs.devel Subject: Re: Stipples support in MS-Windows port Date: Mon, 20 May 2024 20:00:51 -0600 Message-ID: <86le43x6ss.fsf@gmail.com> References: <87a5l49a53.fsf@yahoo.com> <87seyw7udp.fsf@yahoo.com> <87wmo0zzni.fsf@yahoo.com> <86r0e83gez.fsf@gnu.org> <861q661vgf.fsf@gmail.com> <86le4dvxx9.fsf@gmail.com> <87frulynby.fsf@yahoo.com> <86zfslctt8.fsf@gmail.com> <86r0dwag4n.fsf@gnu.org> <86r0dww9ne.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 21 04:03:38 2024 Return-path: Envelope-to: ged-emacs-devel@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 1s9Eqm-0005e5-AJ for ged-emacs-devel@m.gmane-mx.org; Tue, 21 May 2024 04:03:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9Epp-0007lC-Lj; Mon, 20 May 2024 22:02:37 -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 1s9Epn-0007kZ-KG for emacs-devel@gnu.org; Mon, 20 May 2024 22:02:35 -0400 Original-Received: from mail-oo1-xc43.google.com ([2607:f8b0:4864:20::c43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9Epm-0002Wk-0b; Mon, 20 May 2024 22:02:35 -0400 Original-Received: by mail-oo1-xc43.google.com with SMTP id 006d021491bc7-5b277993a48so2695807eaf.1; Mon, 20 May 2024 19:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716256951; x=1716861751; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=uIcfQTz/KYwrNpMoxNTjT9JcwKBgFwYpEGiEEV/LuaA=; b=D8WBBO4CM/dK2cMc2+QJHIvjC2KFhrogNLQkTjIg0eHRpZUFvQkr4ioVxFaDmG3WZe /QTJvFvIi1adwnkLHmwEzehlVCz7npA1lGROmIPRHoI4eDoybXreiPHsiOxHvKdAU4vw wESXzsGb8prJot+qljeM3h5xRrsJhaevHBoA3tK7JfkR6Tvb/q9VOu/aZNxrIEq7q+Cg n2HcV5GogVKjITuPdSH/VosBCUZum0UNyuoisCvMB7E8Zuqz4RMyRn//L//5+O/K7Dvp edlGjHPdZ0B9AX17vZJwuNOMJRp/YxtySqr0aPEj8hcQxdaoRTisHGZRjJeUJOjIerVA Q2HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716256951; x=1716861751; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uIcfQTz/KYwrNpMoxNTjT9JcwKBgFwYpEGiEEV/LuaA=; b=aSyqvHMmW9SclcyiOMMPJKRAm6nWduJmdHVZhcvs8q8L+1kobuKxhdeoGOSrhEL09t 9WPtASWfyAhvZqqxri0fV1rLE3E05BAWSM2hMLulWBP6t+ZZcR50G0dMVUQMe78Pd2qK QCZDnQIuvb1/zeyRITbrIVLTm/1wUy2gWJZ4y0Djx+FoFfeMVPbNAjTTNUYcEDmCGM9k Ezr6IDIqGTRyh9uFsN5q7VN0kjosH04PsmmSmRNNFOXyOv2vZrv5S9pK9arR0FMQa2cL 7ufkqxESRp7Au+7gnMWS3Vkg5fR6brUd0tQVifjFeB5I8Q+qwxiEMETCmZBrbTYXdbho 9o2A== X-Forwarded-Encrypted: i=1; AJvYcCWTYnY1VEzupR5mWDZHtty/2Ef7u8Xn4b+arzggNflaVZpyB0cxU8B4uBDj12GOnrHr8CPMRUcZqAkLaqBBiqwibYwk X-Gm-Message-State: AOJu0YxYIum97B27Vps6qjZtuNUFDXZQVpLzz5EjBoETjI4n0lc2DKqJ eM5hygQOoObhmYhh7/Z9Z6rjcBr9T/yEiCITvNuT4BoKYMCwwK9V1eeTcEYl X-Google-Smtp-Source: AGHT+IFoNGi4oLlmKUAIVecjF1zMzB1x0aHSICLjLKfjgtEkDcNBRRoYUFiwcaRUXT3wouM7SBBrKA== X-Received: by 2002:a05:6820:22a3:b0:5b5:468c:aabd with SMTP id 006d021491bc7-5b5468cadf9mr475854eaf.6.1716256950965; Mon, 20 May 2024 19:02:30 -0700 (PDT) Original-Received: from LIBERO ([187.184.24.187]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5b278f5ddb5sm5118125eaf.40.2024.05.20.19.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 19:02:30 -0700 (PDT) In-Reply-To: <86r0dww9ne.fsf@gmail.com> (Elijah G.'s message of "Mon, 20 May 2024 13:44:37 -0600") Received-SPF: pass client-ip=2607:f8b0:4864:20::c43; envelope-from=eg642616@gmail.com; helo=mail-oo1-xc43.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319435 Archived-At: "Elijah G." writes: >>> From: "Elijah G." >>> Cc: emacs-devel@gnu.org >>> Date: Sun, 19 May 2024 16:37:07 -0600 >>> >>> Good news, the stipple implementation is now done, now works using >>> indent-bars package and other stipples, however there are some >>> issues that i want to remark >>> >>> 1. Currently it only works for stipple data and not for X Bitmap files, >>> I don't know where is stored the code for using X Bitmap in stipples. >> >> Please elaborate: what doesn't work yet with this implementation? > > It's kind of hard for me to explain, but I think that doesn't mean it's > hard to solve. > > In the documentation > (https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html) > specifies that stipples can be a filepath to an X Bitmap file: > > The value can be a string; that should be the name of a file containing > external-format X bitmap data. The file is found in the directories > listed in the variable x-bitmap-file-path. > > That is not done yet ... About this last one, i've forgot that `image_create_bitmap_from_file` can fix this, in case i can solve it, the only issue will be the bitmap having the colors inverted. A more detailed example about that issue: 1111001111 0000110000 1111001111 0000110000 1111001111 0000110000 1111001111 0000110000 1111111111 0000000000 1111001111 0000110000 Expected Result in Windows, bitmaps uses 1 for bg color and 0 for fg.