Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Habe folgendenden Code um in einem Editfeld die Schrift festzulegen:


GetObject(GetStockObject(ANSI_FIXED_FONT),sizeof(LOGFONT),&lf);

lf.lfWeight = FW_NORMAL;

lf.lfItalic = false;

// Create the font, and then return its handle.

hFont = CreateFont(lf.lfHeight, lf.lfWidth,
lf.lfEscapement, lf.lfOrientation, lf.lfWeight,
lf.lfItalic, lf.lfUnderline, lf.lfStrikeOut, lf.lfCharSet,
lf.lfOutPrecision, lf.lfClipPrecision, lf.lfQuality,
lf.lfPitchAndFamily, lf.lfFaceName);

SendMessage(WM_SETFONT,(WPARAM)hFont,0);
[/PHP]

Wie kann ich da Einfluss auf die Schriftgröße nehmen? Wenn ich den ersten Parameter ändere und z.B. lf.lfHeight-6 übergebe dann ändert sich nichts.

Hat mir "Courier" geliefert.
Courier ist tatsächlich eine Pixelschriftart mit festen Größen.

Ist Courier New denn auch eine Fixed Font,
Ja, Courier New ist eine Festbreitenschriftart.

bzw weißt du ob ich davon ausgehen kann das die auf jedem Windows System installiert ist wenn ich den Namen festlege?
Mir ist noch kein Windows begegnet, auf dem Courier New, Times New Roman und Arial nicht vorhanden gewesen wären.

Aber du kannst auf Nummer sicher gehen, indem du bei lfOutPrecision das Flag OUT_OUTLINE_PRECIS setzt. Wenn du lfPitchAndFamily auf FIXED_PITCH und lfFaceName auf einen leeren String setzt, müsste dabei eine skalierbare Festbreitenschriftart rauskommen, wenn eine vorhanden ist.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.