---
name: "s3d_strlen"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_strlen"
---

# s3d\_strlen(3)

get rendered string size

## NAME

s3d\_strlen - get rendered string size

## SYNOPSIS

```
#include <s3d.h>
```

**float s3d\_strlen(const char \****str***);**

## DESCRIPTION

Returns the length of the string if it were rendered with the currently selected font. That might be useful to estimate the size used for a text and render the background or bounding box before inserting the text.

## AUTHOR

**Simon Wunderlich**

Author of s3d
