/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
bool UnscaledFontGDI::GetFontDescriptor(FontDescriptorOutput aCb, void* aBaton) { // Because all the callers of this function are preparing a recorded // event to be played back in another process, it's not helpful to ever // return a font descriptor, since it isn't meaningful in another // process. Those callers will always need to send full font data, and // returning false here will ensure that that happens. returnfalse;
}
already_AddRefed<UnscaledFont> UnscaledFontGDI::CreateFromFontDescriptor( const uint8_t* aData, uint32_t aDataLength, uint32_t aIndex) { if (aDataLength < sizeof(LOGFONT)) {
gfxWarning() << "GDI font descriptor is truncated."; return nullptr;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.