indexing
description: "Eiffel Vision font. Mswindows implementation."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "character, face, height, family, weight, shape, bold, italic"
date: "$Date: 2006-03-22 23:29:03 -0800 (Wed, 22 Mar 2006) $"
revision: "$Revision: 57641 $"
class interface
EV_FONT_IMP
create
make (an_interface: like interface)
`Current'
require EV_ANY_I
an_interface_not_void: an_interface /= Void
ensure EV_ANY_I
interface_assigned: interface = an_interface
base_make_called: base_make_called
feature
char_set: INTEGER_32
family: INTEGER_32
generating_type: STRING_8
ANY
generator: STRING_8
ANY
height: INTEGER_32
height_in_points: INTEGER_32
preferred_families: EV_ACTIVE_LIST [STRING_32]
family
EV_FONT_I
shape: INTEGER_32
weight: INTEGER_32
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
ascent: INTEGER_32
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
descent: INTEGER_32
horizontal_resolution: INTEGER_32
is_proportional: BOOLEAN
maximum_width: INTEGER_32
minimum_width: INTEGER_32
name: STRING_32
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
string_size (a_string: STRING_GENERAL): TUPLE [INTEGER_32, INTEGER_32, INTEGER_32, INTEGER_32]
`a_string'
widthheight`a_string'
widthheight
`left_offset'
`right_offset'`a_string'`left_offset'
`right_offset'
`a_string'`left_offset'
`right_offset'width
require EV_FONT_I
a_string_not_void: a_string /= Void
string_width (a_string: STRING_GENERAL): INTEGER_32
`a_string'
require EV_FONT_I
a_string_not_void: a_string /= Void
ensure EV_FONT_I
positive: Result >= 0
vertical_resolution: INTEGER_32
width: INTEGER_32
feature
copy_font (font: EV_FONT)
`Current'`other'
char_set
require EV_FONT_I
other_not_void: font /= Void
type_identity: same_type (font)
set_family (a_family: INTEGER_32)
`a_family'
require EV_FONT_I
a_family_valid: valid_family (a_family)
ensure EV_FONT_I
family_assigned: family = a_family
set_height (a_height: INTEGER_32)
`a_height'
require EV_FONT_I
a_height_bigger_than_zero: a_height > 0
ensure EV_FONT_I
height_assigned: height = a_height
set_height_in_points (a_height: INTEGER_32)
`a_height_in_points'`a_height'
require EV_FONT_I
a_height_bigger_than_zero: a_height > 0
ensure EV_FONT_I
height_assigned: height_in_points = a_height
set_shape (a_shape: INTEGER_32)
`a_shape'
require EV_FONT_I
a_shape_valid: valid_shape (a_shape)
ensure EV_FONT_I
shape_assigned: shape = a_shape
set_values (a_family, a_weight, a_shape, a_height: INTEGER_32; a_preferred_families: like preferred_families)
`a_family'`a_weight'`a_shape'`a_height'
`a_preferred_faces'
EV_FONT_I
require EV_FONT_I
a_family_valid: valid_family (a_family)
a_weight_valid: valid_weight (a_weight)
a_shape_valid: valid_shape (a_shape)
a_height_bigger_than_zero: a_height > 0
a_preferred_families_not_void: a_preferred_families /= Void
set_weight (a_weight: INTEGER_32)
`a_weight'
require EV_FONT_I
a_weight_valid: valid_weight (a_weight)
ensure EV_FONT_I
weight_assigned: weight = a_weight
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
family_modern: INTEGER_32 is 5
EV_FONT_CONSTANTS
family_roman: INTEGER_32 is 2
EV_FONT_CONSTANTS
family_sans: INTEGER_32 is 3
EV_FONT_CONSTANTS
family_screen: INTEGER_32 is 1
EV_FONT_CONSTANTS
family_typewriter: INTEGER_32 is 4
EV_FONT_CONSTANTS
shape_italic: INTEGER_32 is 11
EV_FONT_CONSTANTS
shape_regular: INTEGER_32 is 10
EV_FONT_CONSTANTS
weight_black: INTEGER_32 is 9
EV_FONT_CONSTANTS
weight_bold: INTEGER_32 is 8
EV_FONT_CONSTANTS
weight_regular: INTEGER_32 is 7
EV_FONT_CONSTANTS
weight_thin: INTEGER_32 is 6
EV_FONT_CONSTANTS
feature
valid_family (a_family: INTEGER_32): BOOLEAN
`a_family'
EV_FONT_CONSTANTS
valid_shape (a_shape: INTEGER_32): BOOLEAN
`a_shape'
EV_FONT_CONSTANTS
valid_weight (a_weight: INTEGER_32): BOOLEAN
`a_weight'
EV_FONT_CONSTANTS
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
wel_log_font_exists: wel_log_font /= Void
wel_font_exists: wel_font /= Void
EV_FONT_I
family_valid: is_initialized implies valid_family (family)
weight_valid: is_initialized implies valid_weight (weight)
shape_valid: is_initialized implies valid_shape (shape)
height_bigger_than_zero: is_initialized implies height > 0
ascent_not_negative: is_initialized implies ascent >= 0
descent_not_negative: is_initialized implies descent >= 0
width_of_empty_string_equals_zero: is_initialized implies string_width ("") = 0
EV_ANY_I
interface_coupled: is_usable implies interface /= Void and then interface.implementation = Current
base_make_called: base_make_called
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
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 EV_FONT_IMP