Schriftart aus HTML-Email bei Copy and Paste übernehmen?

1 Antwort

Ja und Nein.

Wenn du etwas aus einer HTML-Mail (oder Webseite) kopierst, dann wird HTML Code kopiert, der gewisse Formatierungsinformationen beinhaltet. Das hier ist z.B. was die Zwischenablage beinhaltet wenn man deine Frage kopiert:

<h1 class="Question-title u-mtm u-mbm" style="box-sizing: inherit; font-size: 2rem; margin-top: 1rem !important; margin-right: 0px; margin-bottom: 1rem !important; margin-left: 0px; font-family: &quot;Roboto Slab&quot;, serif; line-height: 1.2; font-weight: 700; max-width: 100%; overflow-wrap: break-word; color: rgb(34, 34, 35); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Schriftart aud HTML-Email bei Copy and Paste übernehmen?</h1><gf-image-viewer-connector style="box-sizing: inherit; color: rgb(34, 34, 35); font-family: Roboto, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="ContentBody " style="box-sizing: inherit; display: block; position: relative; word-break: break-word; color: var(--text);"><div data-e2e-ref="content-body" style="box-sizing: inherit; overflow-wrap: break-word;"><p style="box-sizing: inherit; margin: 0px; overflow-wrap: break-word;">Ist es möglich das eine in einer HTML-Email angegebene schriftart bei Copy and Paste in ein Schreibprogramm erhalten beleibt? Das z.B. in der HTML E-Mail ein Text in Arial geschrieben ist und wenn ich den in mein Schreib-Programm einfüge der Text dort auch in Arial geschrieben ist?</p><p style="box-sizing: inherit; margin: 1em 0px 0px; overflow-wrap: break-word;">Hoffe auf antworten,</p><p style="box-sizing: inherit; margin: 1em 0px 0px; overflow-wrap: break-word;">Bohne47</p></div></div></gf-image-viewer-connector>

Was wirklich in der Zwischenablage liegt wenn du etwas kopierst kannst du dir hier anzeigen lassen: https://evercoder.github.io/clipboard-inspector/

Interessant ist das "font-family" im Code, denn das gibt die Schriftart an die der kopierte Text hat - das heißt nur den Namen der Schriftart! Die Schriftart muss also auf deinem Computer installiert sein, damit der Text in ihr angezeigt wird. Webseiten können allerdings auch eigene Schriftarten laden, die nicht auf deinem Computer installiert sein müssen. Leider wird die geladene Schriftart selber nicht mitkopiert.

Also, ja, die Schriftart-Information wird mitkopiert, aber in anderen Programmen kannst du sie nur sehen wenn sie auch am Rechner installiert ist


Bohne47 
Beitragsersteller
 03.03.2023, 19:04

Also mitkopiert wurde es und die schriftart Arial kann ich in dem Schreibprogramm auswählen, gibt es eine Schriftart die auf jeden fall funktionieren würde, weil sie quari vorinstalliert wurde.

0