Commit Graph

141 Commits

Author SHA1 Message Date
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Asumu Takikawa
9e6329abee slideshow/balloon: fix balloon to match docs 2012-11-06 14:09:41 -05:00
Matthew Flatt
a755479d59 slideshow/pict repair
Merge to v5.3.1
2012-10-12 22:37:47 -04:00
James Swaine
f38bd159d2 Add frame options to show-pict 2012-10-05 16:04:13 -05:00
Matthew Flatt
d05f9bacb3 slideshow/balloon: Rackety 2012-09-20 16:46:07 -06:00
Matthew Flatt
a422256393 slideshow/pict: make `colorize' accept list of bytes (as documented) 2012-09-20 16:46:07 -06:00
Matthew Flatt
e81cd0d8d7 add `slideshow/code-pict' and code transformers
The `slideshow/code-pict' library is the same as `slideshow/code', but
it works in non-GUI settings. Only the `slideshow/code' library connects
the code font size to `current-font-size', though.

The `code' macro, `define-code', etc., now support "code transformers",
which are syntax bindings that trigger otherwise-unescaped transformations
in the code to typeset (which can make the code easier to read and
friendlier to auto-indentation).
2012-09-18 10:03:26 -06:00
Robby Findler
7647e94eee add scale-to-fit to slideshow/pict 2012-08-22 22:06:07 -05:00
Robby Findler
e9ddc54b18 added the #:draw-border? argument to disk and filled-ellipse 2012-06-10 11:53:54 -05:00
Matthew Flatt
e334632ffc slideshow/pict: fix clipping problem with `standard-fish' 2012-05-25 12:47:39 -06:00
Robby Findler
9d000cdd1a added thermometer 2012-05-18 10:48:24 -05:00
Matthew Flatt
d430656a03 slideshow/pict: for `text' in caps mode, kern captials with following 2012-05-17 16:21:27 -06:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Matthew Flatt
351e82735b move and rename pict `convert' support
Renamed `convert' to `pict-convert', etc., to avoid confusion
with `file/convert' bindings.

Moved out of `slideshow/pict' to `slideshow/pict-convert', because
most `slideshow/pict' clients do not need it.
2012-04-06 18:51:10 -06:00
Matthew Flatt
d635b93644 slideshow/pict: sync text' size limit with font%' 2012-04-02 16:45:37 -06:00
Matthew Flatt
b3002cfab0 add hinting configuration to `font%'
The default is that hiniting is enabled, which causes some text
metrics (notably width) to be rounded to integer values, which makes
spacing more consistent. This default is backward-compatible. The
non-default 'unaligned mode refrains from rounding, which makes metric
information scale correctly and improves output for PS/PDF (such as
Redex output).

The `text' function from `slideshow/pict' defaults to
disabling hinting --- which is consistent with its default to combine
text instead of drawing character-by-character -- so slides and Redex
inherit the improvement.
2012-03-27 11:16:27 -06:00
Matthew Flatt
ed05c385e8 coerce picts to PS/PDF in 'smoothed mode 2012-03-24 11:04:17 -06:00
Eli Barzilay
f7c67b49a4 Big newline at EOF scan. 2012-02-29 00:28:11 -05:00
Robby Findler
df4dbe615f add a convertible interface to texpict that lets
values be convertiable to picts.

use that interface in DrRacket, but via the suboptimal
screen-bitmap route (for now)
2012-02-24 10:48:19 -06:00
Robby Findler
868cc4388f go back to make-bitmap for pict turned into bitmaps via file/convertible
the lack of alpha (under windows) seems to outweigh the various
font drawing bugs/shortcomings
2012-02-24 08:15:05 -06:00
Robby Findler
1945ff2709 add make-platform-bitmap
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)

closes PR 12554
2012-02-21 16:19:45 -06:00
Robby Findler
1f2d0462a9 guard against strange syntax objects being passed to 'code' 2011-12-02 15:18:18 -06:00
Robby Findler
301631c0d6 add a contract for slideshow/pict's bitmap function 2011-12-01 13:45:25 -06:00
Robby Findler
9b4e0ad15a add a #:draw-border? to filled-rounded-rectangle 2011-11-11 16:05:24 -06:00
Eli Barzilay
a68ea14d8b Fix typo in symbol name, keep old one still.
Closes PR 12265.
2011-10-07 10:47:15 -04:00
Matthew Flatt
fa82d70cc6 slideshow/pict: add linestyle' and #:style' argument to `pin-line' 2011-08-24 09:07:13 -06:00
Robby Findler
01fe366e8c fix standard-fish when the mouth is to the right 2011-07-24 23:26:14 -04:00
Matthew Flatt
4905d344dd slideshow/pict: add `rotate'
which requires two new fields in the `child' struct to support
 `lt-find', etc., when child picts are rotated
2011-07-04 16:26:09 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Robby Findler
69b5daa9e6 remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
Matthew Flatt
c8f235ba1c fix `slideshow/code' for datum after multi-line datum
as in
   (a b
      c) d
 or
   (a b
      c) (code:comment "here")
2011-06-30 13:08:28 -06:00
Matthew Flatt
c5b94831e4 fix colorize' nested inside (linewidth #f ...)' 2011-06-16 08:17:14 -06:00
Robby Findler
507b1cd8fd moved the docs-complete library into rackunit
to avoid having a separate, new manual for the
  one library
2011-05-05 16:10:42 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Robby Findler
28be0c6e89 adjust the size calculation of picts in the file/convertible connection to take into account the current-ps-setup's scale 2011-03-15 09:00:37 -05:00
Robby Findler
615bc86668 added pdf-bytes+bounds to the docs for file/convertible and then used it
to make scribble render inline picts with a nearly good looking baseline
2011-03-14 19:38:29 -05:00
Matthew Flatt
679e9ef2e0 slideshow/pict: adjust `linewidth' to allow #f => transparent 2011-03-08 07:55:52 -06:00
Matthew Flatt
4f93672666 slideshow/code: handle infix notation
and also improve `code:line' alignment across lines
 Closes PR 8334
2011-03-08 07:55:52 -06:00
Matthew Flatt
21c6a9f5c8 Slideshow/Scribble: fix size of PDF generated for pict in a doc 2011-02-15 13:17:17 -07:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00
Matthew Flatt
8681e73278 set `dc-for-text-size' default to a bitmap DC (instead of #f) 2010-12-17 07:16:54 -07:00
Matthew Flatt
0f86dc15af scribble: render `pict' content directly
--- actually, any value that is convertible to PNG/PDF
2010-11-26 20:40:43 -07:00
Matthew Flatt
abcaa1775c add width' and height' arguments to post-script-dc% and pdf-dc%
and document the change that the PS bounding box is no longer
 inferred from drawing operations
2010-11-26 20:40:43 -07:00
Matthew Flatt
1b56d84155 have the pict datatype support conversion to PNG, EPS, or PDF bytes 2010-11-26 11:50:07 -07:00
Matthew Flatt
2edadd6113 add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui 2010-11-26 10:35:05 -07:00
Robby Findler
058c05258e Rackety 2010-10-07 14:27:31 -05:00
Robby Findler
4992e2ab27 added some error checking 2010-10-07 14:27:30 -05:00
Sam Tobin-Hochstadt
da80d6c034 allow +,-,(,) in code subscripts and superscripts 2010-10-07 10:18:06 -04:00
Robby Findler
827679e9db added contract to scale 2010-09-26 22:47:34 -05:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00