# Vorbelegte Schriftart ändern

**URL:** <https://ecm.community/t/vorbelegte-schriftart-aendern/591>\
**Category:** Embedded Documents for enaio® und yuuvis®\
**Created:** [22. Juli 2024 um 12:15 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591 "2024-07-22T12:15:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hesslinl](https://ecm.community/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@hesslinl](https://ecm.community/u/hesslinl)\
**Post date:** [22. Juli 2024 um 12:15 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/1 "2024-07-22T12:15:59Z")

</div>

Hallo zusammen,

bei unterschiedlichen Funktionen wie beispielsweise dem Einfügen von freiem Text oder Textlegenden wird zur Zeit standardmäßig die Schriftart „Helvetica“ genutzt.

Da bei uns die Schriftart **„Roboto“** als Standard ausgewählt wurde und bereits in Embedded Documents integriert ist, wäre es schön, wenn diese auch standardmäßig hinterlegt ist und nicht jedes Mal ausgewählt werden müsste.

Gibt es die Möglichkeit, dass man die vorbelegte Schriftart ändern kann?

Vielen Dank im Voraus!

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [22. Juli 2024 um 15:50 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/2 "2024-07-22T15:50:32Z")

</div>

Hallo @hesslinl, Danke für Deine Frage an die ECM.community.

Die Integration der Schriftart Roboto, wurde dies entsprechend meines Beispiels als Interceptor umgesetzt?

> [@Interceptor-Beispiel: Eigene Schriftarten für Annotationen aktivieren](https://ecm.community/t/interceptor-beispiel-eigene-schriftarten-fuer-annotationen-aktivieren/434):
>
> Schriftarten könnten prinzipiell per Interceptor-API ergänzt werden, allerdings müssen diese dann auf allen unterstützten Plattformen zur Verfügung stehen. Hier habe ich mir eine kreative Schriftart beispielhaft bei mir im System hinterlegt: var addFontExample = { updateEditorConfiguration: async (instance, info, config) =\> { instance.UI.Fonts.addAnnotationFont("Saiyan Sans"); } } window.ed.registerInterceptor(addFontExample); Der Interceptor kann dann wie üblich a…

Hier wäre ein anderes Interceptor-Beispiel, welches `Roboto` als Schrift für Freitextannotationen mit der Grösse 32 vorbelegt:

```javascript
var defaultFontExample = {
    updateEditorConfiguration: async (instance, info, config) => {
        const { documentViewer, Annotations } = instance.Core;
        documentViewer.getTool('AnnotationCreateFreeText').setStyles(currentStyle => ({
            FontSize: '32pt',
            Font: "Roboto"
        }));
    }
}

// Registriere den Interceptor
window.ed.registerInterceptor(defaultFontExample);

```

Ergebnis:

 ![Screenshot](https://ecm.community/uploads/default/original/1X/b2dace497e112b67dbf99ce85708c683f1850adc.png)

---

<div class="post-metadata">

**Author:** ![hesslinl](https://ecm.community/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@hesslinl](https://ecm.community/u/hesslinl)\
**Post date:** [23. Juli 2024 um 06:18 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/3 "2024-07-23T06:18:25Z")

</div>

Hallo @rk ,

vielen Dank für die schnelle Rückmeldung. Nun wird beim freien Text auch standardmäßig die Schriftart „Roboto“ hinterlegt.

Kann dies auch beim Erstellen neuer Stempel hinterlegt werden? Zur Zeit wird auch hier die Schriftart „Helvetica“ ausgewählt.

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [23. Juli 2024 um 06:24 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/4 "2024-07-23T06:24:27Z")

</div>

(Hinweis: Ich habe mir erlaubt, die Kategorie von #Embedded Office for enaio® und yuuvis® zur #Embedded Documents for enaio® und yuuvis® zu ändern.)

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [23. Juli 2024 um 06:30 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/5 "2024-07-23T06:30:43Z")

</div>

> [@hesslinl](#):
>
> vielen Dank für die schnelle Rückmeldung. Nun wird beim freien Text auch standardmäßig die Schriftart „Roboto“ hinterlegt.

Freut mich, dass dies nützlich ist.

> [@hesslinl](#):
>
> Kann dies auch beim Erstellen neuer Stempel hinterlegt werden? Zur Zeit wird auch hier die Schriftart „Helvetica“ ausgewählt.

Ich würde hoffen, dass die Anpassung ähnlich ausfällt. Bei grösseren Anpassungen, welche über reine Beispiele hinaus gehen, würde ich empfehlen, dies über das Consulting von/mit OS zu besprechen. Dies auch, damit die Lösung dauerhaften Support erfährt.

---

<div class="post-metadata">

**Author:** ![hesslinl](https://ecm.community/letter_avatar_proxy/v4/letter/h/3da27b/32.png) [@hesslinl](https://ecm.community/u/hesslinl)\
**Post date:** [31. Juli 2024 um 11:16 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/6 "2024-07-31T11:16:15Z")

</div>

Hallo @rk,

ich nehme noch einmal Bezug auf die oben stehende Anfrage. Mit dem bereitgestellten Skript ist es möglich, standardmäßig die Schriftart „Roboto“ mit entsprechender Schriftgröße für freie Textanmerkungen zu nutzen.

Aufgefallen ist, dass dies nur bei der Farbe Rot umgesetzt wird. Müsste es laut dem Skript nicht immer mit der aktuell ausgewählten Schriftfarbe funktionieren? Haben Sie eine Idee worin das Problem liegen könnte?

Vielen Dank im Voraus!

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [31. Juli 2024 um 13:55 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/7 "2024-07-31T13:55:19Z")

</div>

Hallo @hesslinl, die Palette erlaubt es jeweils vollkommen individuelle Stile zu hinterlegen, d. h. jeder von der vier Einträge kann nicht nur eine andere Farbe, sondern auch andere Schriftart oder -grösse sowie Fett/Kursiv/etc. hinterlegt haben:

 ![Palette](https://ecm.community/uploads/default/original/1X/270dbb3ef15f9c1c19fc79904f182a36d2da88e7.png)

Mein Beispiel-Code verändert nur den ersten Stil (im Standard das rote T aus der Palette). Dieses hier iteriert über und verändert damit alle vier Einträge der Palette:

```js
var defaultFontAllFreeTexts = {
    updateEditorConfiguration: async (instance, info, config) => {
        const { documentViewer, Annotations } = instance.Core;

        ["AnnotationCreateFreeText", "AnnotationCreateFreeText2", "AnnotationCreateFreeText3", "AnnotationCreateFreeText4"].forEach(toolName => {
            documentViewer.getTool(toolName).setStyles(currentStyle => ({
                FontSize: '32pt',
                Font: "Roboto"
            }));        
        })
    }
}

window.ed.registerInterceptor(defaultFontAllFreeTexts);

```

 ![Ergebnis](https://ecm.community/uploads/default/original/1X/6b38d4affc4f57cb047cdb07c6108ef006eb098a.png)

Hinweis: Die Tool-Namen entsprechen den in CamelCase umgewandelten Feldnamen aus dieser Liste: [Apryse WebViewer Namespace: Tools](https://docs.apryse.com/api/web/Core.Tools.html#.ToolNames) - hier ein automatisch umgewandelter Auszug davon:

| Name | Description |
| --- | --- |
| Arc | name of the arc tool |
| Arc2 | name of the second arc tool |
| Arc3 | name of the third arc tool |
| Arc4 | name of the fourth arc tool |
| Arrow | name of the arrow line tool |
| Arrow2 | name of the second arrow line tool |
| Arrow3 | name of the third arrow line tool |
| Arrow4 | name of the fourth arrow line tool |
| Callout | name of the callout tool |
| Callout2 | name of the second callout tool |
| Callout3 | name of the third callout tool |
| Callout4 | name of the fourth callout tool |
| Ellipse | name of the ellipse tool |
| Ellipse2 | name of the second ellipse tool |
| Ellipse3 | name of the third ellipse tool |
| Ellipse4 | name of the fourth ellipse tool |
| Freehand | name of the freehand tool |
| Freehand2 | name of the second freehand tool |
| Freehand3 | name of the third freehand tool |
| Freehand4 | name of the fourth freehand tool |
| FreehandHighlight | name of the freehand highlight tool |
| FreehandHighlight2 | name of the second freehand highlight tool |
| FreehandHighlight3 | name of the third freehand highlight tool |
| FreehandHighlight4 | name of the fourth freehand highlight tool |
| Freetext | name of the freetext tool |
| Freetext2 | name of the second freetext tool |
| Freetext3 | name of the third freetext tool |
| Freetext4 | name of the fourth freetext tool |
| DateFreetext | name of the fourth freetext tool |
| MarkInsertText | name of the mark insert text tool |
| MarkInsertText2 | name of the second mark insert text tool |
| MarkInsertText3 | name of the third mark insert text tool |
| MarkInsertText4 | name of the fourth mark insert text tool |
| MarkReplaceText | name of the mark replace text tool |
| MarkReplaceText2 | name of the second mark replace text tool |
| MarkReplaceText3 | name of the third mark replace text tool |
| MarkReplaceText4 | name of the fourth mark replace text tool |
| FormFillCross | name of the cross stamp tool |
| FormFillCheckmark | name of the check stamp tool |
| FormFillDot | name of the dot stamp tool |
| Line | name of the line tool |
| Line2 | name of the second line tool |
| Line3 | name of the third line tool |
| Line4 | name of the fourth line tool |
| Polygon | name of the polygon tool |
| Polygon2 | name of the second polygon tool |
| Polygon3 | name of the third polygon tool |
| Polygon4 | name of the fourth polygon tool |
| PolygonCloud | name of the polygon cloud tool |
| PolygonCloud2 | name of the second polygon cloud tool |
| PolygonCloud3 | name of the third polygon cloud tool |
| PolygonCloud4 | name of the fourth polygon cloud tool |
| Polyline | name of the polyline tool |
| Polyline2 | name of the second polyline tool |
| Polyline3 | name of the third polyline tool |
| Polyline4 | name of the fourth polyline tool |
| Rectangle | name of the rectangle tool |
| Rectangle2 | name of the second rectangle tool |
| Rectangle3 | name of the third rectangle tool |
| Rectangle4 | name of the fourth rectangle tool |
| CalibrationMeasurement | name of the calibration measurement tool |
| DistanceMeasurement | name of the distance measurement tool |
| DistanceMeasurement2 | name of the second distance measurement tool |
| DistanceMeasurement3 | name of the third distance measurement tool |
| DistanceMeasurement4 | name of the fourth distance measurement tool |
| PerimeterMeasurement | name of the perimeter measurement tool |
| PerimeterMeasurement2 | name of the second perimeter measurement tool |
| PerimeterMeasurement3 | name of the third perimeter measurement tool |
| PerimeterMeasurement4 | name of the fourth perimeter measurement tool |
| AreaMeasurement | name of the area measurement tool |
| AreaMeasurement2 | name of the second area measurement tool |
| AreaMeasurement3 | name of the third area measurement tool |
| AreaMeasurement4 | name of the fourth area measurement tool |
| CloudyRectangularAreaMeasurement | name of the cloudy area measurement tool |
| CloudyRectangularAreaMeasurement2 | name of the second cloudy area measurement tool |
| CloudyRectangularAreaMeasurement3 | name of the third cloudy area measurement tool |
| CloudyRectangularAreaMeasurement4 | name of the fourth cloudy area measurement tool |
| CountMeasurement | name of the count measurement tool |
| CountMeasurement2 | name of the second count measurement tool |
| CountMeasurement3 | name of the third count measurement tool |
| CountMeasurement4 | name of the fourth count measurement tool |
| ArcMeasurement | name of the arc measurement tool |
| ArcMeasurement2 | name of the second arc measurement tool |
| ArcMeasurement3 | name of the third arc measurement tool |
| ArcMeasurement4 | name of the fourth arc measurement tool |
| EllipseMeasurement | name of the ellipse measurement tool |
| EllipseMeasurement2 | name of the second ellipse measurement tool |
| EllipseMeasurement3 | name of the third ellipse measurement tool |
| EllipseMeasurement4 | name of the fourth ellipse measurement tool |
| RectangularAreaMeasurement | name of the rectangular area measurement tool |
| RectangularAreaMeasurement2 | name of the second rectangular area measurement tool |
| RectangularAreaMeasurement3 | name of the third rectangular area measurement tool |
| RectangularAreaMeasurement4 | name of the fourth rectangular area measurement tool |
| Signature | name of the signature tool |
| Stamp | name of the stamp tool |
| Fileattachment | name of the file attachment tool |
| RubberStamp | name of the rubber stamp tool |
| Sticky | name of the sticky note tool |
| Sticky2 | name of the second sticky note tool |
| Sticky3 | name of the third sticky note tool |
| Sticky4 | name of the fourth sticky note tool |
| Highlight | name of the text highlight tool |
| Highlight2 | name of the second text highlight tool |
| Highlight3 | name of the third text highlight tool |
| Highlight4 | name of the fourth text highlight tool |
| Squiggly | name of the text squiggly tool |
| Squiggly2 | name of the second text squiggly tool |
| Squiggly3 | name of the third text squiggly tool |
| Squiggly4 | name of the fourth text squiggly tool |
| Strikeout | name of the text strikeout tool |
| Strikeout2 | name of the second text strikeout tool |
| Strikeout3 | name of the third text strikeout tool |
| Strikeout4 | name of the fourth text strikeout tool |
| Underline | name of the text underline tool |
| Underline2 | name of the second text underline tool |
| Underline3 | name of the third text underline tool |
| Underline4 | name of the fourth text underline tool |
| Redaction | Name of the text redaction tool |
| Redaction2 | Name of the second text redaction tool |
| Redaction3 | Name of the third text redaction tool |
| Redaction4 | Name of the fourth text redaction tool |
| TextSelect | name of the text select tool |
| OfficeEditorContentSelect | name of the office editor content select tool |
| Edit | name of the edit(select) tool |
| Pan | name of the pan tool |
| Crop | name of the page crop tool |
| Snipping | name of the page snipping tool |
| Marquee | name of the marquee zoom tool |
| Eraser | name of the eraser tool |
| ContentEdit | name of the content edit tool |
| AddParagraph | name of the add paragraph tool |
| AddImageContent | name of the add image content tool |
| TextFormField | name of the Text Form Field creation tool |
| TextFormField2 | name of the second Text Form Field creation tool |
| TextFormField3 | name of the third Text Form Field creation tool |
| TextFormField4 | name of the fourth Text Form Field creation tool |
| SigFormField | name of the Signature Form Field creation tool |
| SigFormField2 | name of the second Signature Form Field creation tool |
| SigFormField3 | name of the third Signature Form Field creation tool |
| SigFormField4 | name of the fourth Signature Form Field creation tool |
| CheckBoxField | name of the Check Box Form Field creation tool |
| RadioFormField | name of the Radio Button Form Field creation tool |
| ListBoxField | name of the List Box Form Field creation tool |
| ListBoxField2 | name of the second List Box Form Field creation tool |
| ListBoxField3 | name of the third List Box Form Field creation tool |
| ListBoxField4 | name of the fourth List Box Form Field creation tool |
| ComboBoxField | name of the Combo Box Form Field creation tool |
| ComboBoxField2 | name of the second Combo Box Form Field creation tool |
| ComboBoxField3 | name of the third Combo Box Form Field creation tool |
| ComboBoxField4 | name of the fourth Combo Box Form Field creation tool |

---

<div class="post-metadata">

**Author:** ![MaxBitzer](https://ecm.community/user_avatar/ecm.community/maxbitzer/32/723_2.png) [@MaxBitzer](https://ecm.community/u/MaxBitzer)\
**Post date:** [5. September 2025 um 07:00 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/8 "2025-09-05T07:00:27Z")

</div>

Guten Tag @rk

kurze Frage hierzu, meine Vorgesetzten wollte in Erfahrung bringen, ob es auch Möglich ist Arial als eine Standard Schriftart zu hinterlegen? Mit ist aufgefallen das es nur eine begrenzte Liste an Schriften in ED gibt, Arial ist keine davon. Sind wir auf diese Schriftarten begrenzt?

 ![image](https://ecm.community/uploads/default/original/1X/2d0c30c636d63fd8f9f61448320ee61b834d1111.png)  
^  
LG

Max Bitzer

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [5. September 2025 um 08:23 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/9 "2025-09-05T08:23:13Z")

</div>

> [@MaxBitzer](#):
>
> kurze Frage hierzu, meine Vorgesetzten wollte in Erfahrung bringen, ob es auch Möglich ist Arial als eine Standard Schriftart zu hinterlegen?

Hallo @MaxBitzer, Schriftarten können über Interceptoren bereitgestellt werden. Die Problematik ist, dass die Font-Dateien dann auf den Zielsystemen vorhanden sein müssen (oder eventuell komplizierter als Webfont geladen werden müssten):

> [@Interceptor-Beispiel: Eigene Schriftarten für Annotationen aktivieren](https://ecm.community/t/interceptor-beispiel-eigene-schriftarten-fuer-annotationen-aktivieren/434):
>
> Schriftarten könnten prinzipiell per Interceptor-API ergänzt werden, allerdings müssen diese dann auf allen unterstützten Plattformen zur Verfügung stehen. Hier habe ich mir eine kreative Schriftart beispielhaft bei mir im System hinterlegt: var addFontExample = { updateEditorConfiguration: async (instance, info, config) =\> { instance.UI.Fonts.addAnnotationFont("Saiyan Sans"); } } window.ed.registerInterceptor(addFontExample); Der Interceptor kann dann wie üblich a…

Ich weiss beispielsweise nicht, ob Arial auf Macs/iPads/… zum Standardsatz gehört.

---

<div class="post-metadata">

**Author:** ![MaxBitzer](https://ecm.community/user_avatar/ecm.community/maxbitzer/32/723_2.png) [@MaxBitzer](https://ecm.community/u/MaxBitzer)\
**Post date:** [5. September 2025 um 08:36 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/10 "2025-09-05T08:36:16Z")

</div>

Hallo @rk

also bei uns sind soweit ich weiß ausschließlich Windows basierte Clients unterwegs. Keine Webclients nur der Rich Client.  
In Windows ist Arial ja standardmäßig hinterlegt.

LG

Max Bitzer

---

<div class="post-metadata">

**Author:** ![MaxBitzer](https://ecm.community/user_avatar/ecm.community/maxbitzer/32/723_2.png) [@MaxBitzer](https://ecm.community/u/MaxBitzer)\
**Post date:** [11. September 2025 um 12:52 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/11 "2025-09-11T12:52:37Z")

</div>

Hallo zusammen,

ich hätte hier nochmal eine Frage zum von mir erwähnten Webclient.  
Wie funktioniert das hier eigentlich mit den Schriftarten? Greif hier der Browser auf hinterlegte Schriftarten zu? Oder gibt es hier die Möglichkeit Schriftarten auch wieder selbst zu hinterlegen?

Wir haben nämlich folgende Bedenken:

1. Wir fügen Arial in unser System hinzu, auf nachfrage unserer User.
2. Die User füllen fröhlich Dokumente aus
3. Der Enaio Webclient soll irgendwann in Zukunft eingeführt werden → 

- Kann dieser fremde Schriftarten verwenden?
- Kann dieser das ED auch mit weiteren Schriftarten verwenden, genauso wie auch die Interceptoren?
- Der Browser sollte soweit mir bekannt aber auch Zugriff auf Lokale Schriftarten haben oder?
- Oder könnte das dazu führen das Dokumente die mit Arial ausgefüllt wurden nicht mehr lesbar sind? Weil der Browser diese Schriftarten doch nicht abruft? Oder der Webclient sie nicht verwendet / verfügbar macht?

LG

Max Bitzer

---

<div class="post-metadata">

**Author:** ![rk](https://ecm.community/user_avatar/ecm.community/rk/32/679_2.png) [@rk](https://ecm.community/u/rk)\
**Post date:** [11. September 2025 um 16:25 UTC](https://ecm.community/t/vorbelegte-schriftart-aendern/591/12 "2025-09-11T16:25:18Z")

</div>

Hallo @MaxBitzer, gute Fragen,

also das Beispiel [Interceptor-Beispiel: Eigene Schriftarten für Annotationen aktivieren](https://ecm.community/t/interceptor-beispiel-eigene-schriftarten-fuer-annotationen-aktivieren/434) zeigt ja, dass prinzipiell auch exotische Schriftarten eingebunden werden können. Das ist dann im Rich- und WebClient vorhanden. Aber prinzipbedingt müssen Fonts auch immer auf Empfängerseite vorhanden sein oder im PDF eingebunden werden. Letztes benötigt Speicherplatz, und zwar in jedem PDF, und erfordert ggf. eine Lizenz für die Font (bei Arial soweit ich weiss, kein Problem).

Wenn eine Font nicht vorhanden ist, wird der PDF-Viewer eine Fallback-Font nutzen, was dann optisch anders aussehen könnte, zumindest, wenn sie nicht im PDF hinterlegt ist.
