note description: "Abstraction for objects that have a font property." legal: "See notice at end of class." status: "See notice at end of class." keywords: "font, name, property" date: "$Date$" revision: "$Revision$" deferred class EV_FONTABLE inherit EV_ANY redefine implementation end feature -- Access font: EV_FONT -- Typeface appearance for `Current'. require not_destroyed: not is_destroyed do Result := implementation.font ensure not_void: Result /= Void bridge_ok: Result.is_equal (implementation.font) end feature -- Element change set_font (a_font: EV_FONT) -- Assign `a_font' to `font'. require not_destroyed: not is_destroyed a_font_not_void: a_font /= Void do implementation.set_font (a_font) ensure font_assigned: font.is_equal (a_font) and font /= a_font end feature {EV_ANY, EV_ANY_I} -- Implementation implementation: EV_FONTABLE_I; -- Responsible for interaction with native graphics toolkit. note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class EV_FONTABLE