class CAIRO_TEXT_LAYOUT_IMP

(source code)

description

Windows implementation of CAIRO_TEXT_LAYOUT_I

note
	description: "Windows implementation of ${CAIRO_TEXT_LAYOUT_I}"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-01-20 19:18:25 GMT (Saturday 20th January 2024)"
	revision: "5"

class
	CAIRO_TEXT_LAYOUT_IMP

inherit
	CAIRO_TEXT_LAYOUT_I

	EL_WINDOWS_IMPLEMENTATION

	EL_MODULE_SYSTEM_FONTS

create
	make

feature {NONE} -- Implementation

	update_preferred_families
		local
			substitute_fonts: like System_fonts.Substitute_fonts
		do
			substitute_fonts := System_fonts.Substitute_fonts
			substitute_fonts.search (font.name)
			if substitute_fonts.found then
				font.preferred_families.start
				font.preferred_families.replace (substitute_fonts.found_item.to_string_32)
			end
		end

end