Commit Graph

46 Commits (db42e128538f32bb3399f5469866d1b3553ecea3)

Author SHA1 Message Date
John Benediktsson c63a106e1d core-text: cleanup usings. 2014-12-13 16:26:09 -08:00
Björn Lindqvist 61ba941740 math.vectors: changes so that some vocabs that can use math.vector words does it 2014-11-17 19:02:12 -08:00
John Benediktsson 39859f21dc core-text: better check. 2012-11-01 16:43:26 -07:00
John Benediktsson fcce5a2af9 core-text: retina displays should use "2x" fonts. 2012-11-01 16:28:33 -07:00
John Benediktsson fc7f7a736a core-text: delay rendered line calculation until needed. 2012-09-20 19:31:36 -07:00
John Benediktsson f05954c5a9 core-text: use cached-lines get-global. 2012-08-02 21:35:28 -07:00
John Benediktsson f278cb5447 core-text: cache attribute assoc. 2012-07-31 22:03:32 -07:00
John Benediktsson 559b5bfa5b using the new H{ } make. 2012-07-19 09:50:09 -07:00
John Benediktsson 45e2b697be core-text: remove unused local. 2012-06-06 14:46:49 -07:00
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
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 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 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
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 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 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 a25e251329 Working on core-text binding 2009-01-16 19:11:48 -06:00