DrawFormula
Texto, Layout de fórmulas, Gráficos vetoriais
Descrição
Desenha uma fórmula matemática usando a fonte atual, o tamanho do texto, a cor do texto, as configurações de fallback de glifos e as regras vetoriais
Sintaxe
Delphi
Function TPDFlib.DrawFormula(Left, Top: Double; Const Formula, AltText: WideString): Integer;ActiveX
Function PDFlib::DrawFormula(Left As Double, Top As Double, Formula As String, AltText As String) As LongDLL
int DLDrawFormula(int InstanceID, double Left, double Top, const wchar_t * Formula, const wchar_t * AltText);Parâmetros
| Left | Posição horizontal do bounding box da fórmula |
|---|---|
| Top | Borda superior do bounding box da fórmula |
| Formula | Código-fonte da fórmula na markup matemática suportada |
| AltText | Descrição falada acessível usada quando o tagging automático abre um elemento de estrutura Formula |
Valores retornados
Retorna 1 após o desenho, ou 0 quando Formula está vazia
Observações
Use \frac{a}{b} for fractions, x^{2} and x_{i} for scripts, \sqrt{x} or \sqrt[3]{x} for radicals, and commands such as \alpha, \Gamma, \times, \sum, and \infty for symbolsGroups can be nested and repeated measurement or drawing reuses the parsed layout while the font state remains unchanged
The DLL
a variante DLDrawFormulaA aceita texto conforme o modo ANSI configurado