Commit Graph

49 Commits (763d9a3f7dbac882cff1b03bc674b36098c68a48)

Author SHA1 Message Date
John Benediktsson 2add84176e core-text: rename "render-info" to "rendered-line". Fixes #47. 2011-08-27 17:38:07 -07:00
John Benediktsson dba4b65aac core-text: lazy text render (inspired by klazuka). 2011-08-27 17:33:21 -07:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Joe Groff 61d579360d remove non-primitive-related uses of tuck from basis 2009-11-05 17:03:24 -06:00
Joe Groff 935c0797c3 update existing code for [let change 2009-10-27 22:05:37 -05:00
Doug Coleman 6b6e56a179 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04:00
Slava Pestov b88fde04d9 alien.syntax: add C-GLOBAL: for defining words to access global variables, and remove the gimpy one from core-text.utilities 2009-10-09 04:46:29 -05:00
Joe Groff 5054c954be add USING:s and rearrange definitions so macosx can compile without parsing c-type strings 2009-09-26 23:14:57 -05:00
Joe Groff 2eff554273 update cocoa and core-foundation stuff to use classes.struct and boxed malloc-arrays 2009-08-29 12:22:55 -05:00
Joe Groff a56d4ec50d core-text: always create at least a 1x1 bitmap context. snow leopard refuses to create 0x0 contexts 2009-08-26 14:58:15 -05:00
Slava Pestov 46045c882e Disposables are now registered in a global disposables set. To take advantage of this, subclass disposable instead of providing a disposed slot and call new-disposable instead of new. tools.disposables defines two words, 'disposable.' and 'leaks', to help track down resource lifetime problems 2009-08-24 02:26:13 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Doug Coleman 5a3a14d1c9 remove at-default. it was hardly used and it's just '?at drop' 2009-05-24 21:46:59 -05:00
Doug Coleman 8b7fcce399 update code for usages of add-library 2009-03-25 23:00:19 -05:00
Slava Pestov ea60f8ae93 Changing : foo ; parsing to SYNTAX: foo ; 2009-03-21 01:27:50 -05:00
Slava Pestov c2d3b5ae1f Add unportable tag to core-text.fonts 2009-03-09 15:25:25 -05:00
Slava Pestov 52fef83061 Fix various unit tests 2009-03-07 15:58:14 -06:00
Slava Pestov a1cffb65cd Simplify core-text vocab a bit since we don't need the CTFont after we've created the CTLine anymore 2009-02-28 20:33:27 -06:00
Slava Pestov 11f509b0c7 Clean up some code in core-text, and core-text.fonts 2009-02-21 01:26:50 -06:00
Slava Pestov fa79803856 Fix text rendering for fonts where the image bounds exceed the metric bounds, such as Zapfino and Arabic fonts 2009-02-20 20:53:51 -06:00
Slava Pestov 0c4c0410ef Add x-height and cap-height metrics 2009-02-15 02:13:16 -06:00
Slava Pestov 07ea40eaf6 Cosmetic fix 2009-02-14 21:51:54 -06:00
Slava Pestov 36f9793c92 Add font-metrics hook 2009-02-13 20:19:57 -06:00
Slava Pestov f0bc2e1176 Update core-graphics, core-text, opengl.textures for Doug's images API change; core-graphics:with-bitmap-context is now core-graphics:make-bitmap-image 2009-02-13 19:11:07 -06:00
Slava Pestov ea2a3d6758 Split off opengl.textures from opengl.texture-cache; use image tuples instead of texture-info 2009-02-12 03:58:05 -06:00
Slava Pestov d6872af3e7 cache: don't require values to have an age slot anymore 2009-02-10 22:05:13 -06:00
Slava Pestov 5be7a6777b Clean up Core Text rendering code, and factor our basis/cache and basis/opengl/texture-cache 2009-02-10 02:45:43 -06:00
Slava Pestov 7b8e7f8092 Use call( in a bunch of places in the UI; update-ui infers now 2009-02-09 00:49:48 -06:00
Slava Pestov df62cb8edb Better error checking for labels and text rendering 2009-02-09 00:22:41 -06:00
Slava Pestov 176629055e Add support for rendering selected text to ui.text 2009-02-07 18:05:11 -06:00
Slava Pestov f93b2f1c29 Clean up line-metrics code 2009-02-01 23:58:05 -06:00
Slava Pestov ecf3d4f447 Add ui.text:line-metrics word, and core-text implementation 2009-02-01 20:32:49 -06:00
Slava Pestov da44f198f6 Fix core-text.utilities 2009-01-31 23:09:56 -06:00
Slava Pestov 990c99a97e Add foreground and background color slots to font tuple 2009-01-30 03:36:39 -06:00
Slava Pestov cadaf71372 Sub-pixel font smoothing works with Core Text now 2009-01-29 22:07:51 -06:00
Slava Pestov b7c4f548f9 Add texture aging 2009-01-26 23:11:45 -06:00
Slava Pestov 2a7d353251 Debugging Core Text, get colored text working and fix memory management issue 2009-01-21 19:34:42 -06:00
Slava Pestov 7c1fcb3b98 Get text styles working with core-text binding 2009-01-21 00:39:32 -06:00
Slava Pestov 9f76476d26 Refactor Core Foundation binding a bit, add new >cf word to convert Factor objects to CF values 2009-01-20 23:06:23 -06:00
Slava Pestov e6e831c577 Add font and line cache to core text binding 2009-01-19 22:58:09 -06:00
Slava Pestov 12d693f3fb More work on Core Text binding 2009-01-19 22:30:32 -06:00
Slava Pestov fd7a47613e Move core-graphics types from cocoa.types to core-graphics.types, clean up some code 2009-01-19 16:29:52 -06:00
Slava Pestov a6f8d09214 Debugging <CFDictionary> 2009-01-16 22:48:07 -06:00
Slava Pestov 3ba833779f New alien.destructors vocab defines a functor which generalizes &CFRelease; flesh out core-graphics and core-text bindings 2009-01-16 22:37:56 -06:00
Slava Pestov 28c4d323ba Update metadata 2009-01-16 19:12:28 -06:00
Slava Pestov a25e251329 Working on core-text binding 2009-01-16 19:11:48 -06:00