emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 194/255: notes on scaling image sizes


From: Eric Schulte
Subject: [elpa] 194/255: notes on scaling image sizes
Date: Sun, 16 Mar 2014 01:02:47 +0000

eschulte pushed a commit to branch go
in repository elpa.

commit 09e3216b771ee7afb2b64003bf972781657664c6
Author: Eric Schulte <address@hidden>
Date:   Sun May 19 18:58:23 2013 -0600

    notes on scaling image sizes
---
 NOTES             |    7 +++++++
 go-board-faces.el |    6 ++++++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/NOTES b/NOTES
index 0fab574..d62bdbb 100644
--- a/NOTES
+++ b/NOTES
@@ -1,5 +1,12 @@
 #+Options: ^:nil                                      -*- mode:org -*-
 
+* TODO scale image sizes
+See the TODO and note in file:go-board-faces.el.
+
+We'll need to have =go-board-image= return a function rather than a
+list, and then somehow hook in with the =face-remap-add-relative=
+function.
+
 * ability to call back-end functions through the board
 e.g., it would be nice to be able to call gnugo commands and display
 the output.  This should be extensible however...
diff --git a/go-board-faces.el b/go-board-faces.el
index 4a4527f..e507f5f 100644
--- a/go-board-faces.el
+++ b/go-board-faces.el
@@ -74,6 +74,8 @@
   '((t (:background "#cd9c67" :foreground "white")))
   "white piece on white territory")
 
+;; Maybe use `face-remap-add-relative' to change image sizes.
+
 
 ;;; Image utility functions
 (defun go-board-svg-trans (list)
@@ -97,6 +99,10 @@
             (width . 25) (height . 25) (version . 1.0))
        ,@body))))
 
+;; TODO: To allow images to scale with text, this should return a
+;;       function instead of a list.  This function should take a base
+;;       size (e.g., 12.5), and should return the image list
+;;       appropriate for that size.
 (defmacro go-board-image (&rest body)
   ``(image :type svg :ascent center :data
            ,(go-board-wrap



reply via email to

[Prev in Thread] Current Thread [Next in Thread]