---
name: "mdraw_text_with_control"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdraw_text_with_control"
---

# mdraw\_text\_with\_control(3m17n)

## NAME

mdraw\_text\_with\_control -

## SYNOPSIS

int **mdraw\_text\_with\_control** (**MFrame** \* *frame*, **MDrawWindow** *win*, int *x*, int *y*, **MText** \* *mt*, int *from*, int *to*, **MDrawControl** \* *control*)

## DESCRIPTION

Draw an M-text on a window with fine control. The **mdraw\_text\_with\_control()** function draws the text between **from** and **to** of M-text **mt** on windows **win** of frame **frame** at coordinate (**x**, **y**).

The way to draw a text is the same as in **mdraw\_text()** except that this function also follows what specified in the drawing control object **control**.

For instance, if \<two\_dimensional\> of **control** is nonzero, this function draw an M-text 2-dimensionally, i.e., newlines in M-text breaks lines and the following characters are drawn in the next line. See the documentation of the structure @ **MDrawControl** for more detail. \

## COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)\
 Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)\
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License  \<http://www.gnu.org/licenses/fdl.html\>.
