> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/gum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/gum/gum-tool/gum-elements/text/has-dropshadow.md). Agents can also search and read this documentation through its [MCP server](https://docs.flatredball.com/gum/~gitbook/mcp).

# Has Dropshadow

## Introduction

`Has Dropshadow` draws a soft shadow behind a Text's letters. It is off by default. Checking it reveals the other properties in the **Dropshadow** category: `Dropshadow Offset X`, `Dropshadow Offset Y`, `Dropshadow Blur`, `Dropshadow Alpha`, `Dropshadow Red`, `Dropshadow Green`, and `Dropshadow Blue`.

{% hint style="info" %}
Text dropshadows require the project's font generator to be set to **KernSmith** (**Edit** > **Settings...** > **Fonts**). The BMFont generator cannot create shadows, and the tool shows a message under `Has Dropshadow` when it is selected.
{% endhint %}

## Properties

| Property                                                | Default | Effect                                                     |
| ------------------------------------------------------- | ------- | ---------------------------------------------------------- |
| `Dropshadow Offset X`                                   | 0       | Moves the shadow horizontally, in pixels.                  |
| `Dropshadow Offset Y`                                   | 3       | Moves the shadow vertically, in pixels.                    |
| `Dropshadow Blur`                                       | 3       | Softens the shadow edge. 0 is a sharp copy of the letters. |
| `Dropshadow Alpha`                                      | 255     | Shadow opacity.                                            |
| `Dropshadow Red`, `Dropshadow Green`, `Dropshadow Blue` | 0       | Shadow color. The default is black.                        |

The shadow color is independent of the Text's own `Color`, so white text can have a black shadow.

## Blur Uses Whole Pixels

`Dropshadow Blur` is rounded to the nearest whole pixel when the font is generated, so 0.5 produces the same shadow as 0, and 2.4 the same as 2. Use whole numbers.

## Fonts

The blurred shadow is stored in the generated font, so each distinct `Dropshadow Blur` value creates a new font in the project's `FontCache` folder, and the tool regenerates fonts that lack a shadow when you enable it. Offset and color are applied when the Text draws, so changing them does not create new font files.

## Seeing the Shadow

A black shadow is hard to see on a dark background. Place the Text over a lighter background or increase the offset.

## Per-Run Shadows

BBCode can turn the shadow on for part of a Text with the `HasDropshadow` tag. The tag only switches the shadow on or off for that run. Offset, blur, and color come from the Text's own properties. See [Using BBCode for Inline Styling](https://docs.flatredball.com/gum/gum-tool/gum-elements/text/text.md#using-bbcode-for-inline-styling) on the Text page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flatredball.com/gum/gum-tool/gum-elements/text/has-dropshadow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
