Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / MS / Internal / FontCache / CachedTypeface.cs / 1 / CachedTypeface.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: CachedTypeface // // History: 6-08-2005 [....], Created. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using MS.Internal.FontFace; namespace MS.Internal.FontCache { ////// CachedTypeface stores the canonical values and font data of a Typeface. It is looked up or constructed /// when client does shaping or query metrics from Typeface objects. Caching this object allows /// many equal typeface objects to share the same piece of canonicalized data. /// internal class CachedTypeface { private FontStyle _canonicalStyle; private FontWeight _canonicalWeight; private FontStretch _canonicalStretch; private IFontFamily _firstFontFamily; private ITypefaceMetrics _typefaceMetrics; private bool _nullFont; internal CachedTypeface( FontStyle canonicalStyle, FontWeight canonicalWeight, FontStretch canonicalStretch, IFontFamily firstFontFamily, ITypefaceMetrics typefaceMetrics, bool nullFont ) { _canonicalStyle = canonicalStyle; _canonicalWeight = canonicalWeight; _canonicalStretch = canonicalStretch; Invariant.Assert(firstFontFamily != null && typefaceMetrics != null); _firstFontFamily = firstFontFamily; _typefaceMetrics = typefaceMetrics; _nullFont = nullFont; } internal FontStyle CanonicalStyle { get { return _canonicalStyle; } } internal FontWeight CanonicalWeight { get { return _canonicalWeight; } } internal FontStretch CanonicalStretch { get { return _canonicalStretch; } } internal IFontFamily FirstFontFamily { get { return _firstFontFamily; } } internal ITypefaceMetrics TypefaceMetrics { get { return _typefaceMetrics; } } internal bool NullFont { get { return _nullFont; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemBinding.cs
- ArgumentNullException.cs
- EntityDataSourceWrapper.cs
- Pen.cs
- BitmapDownload.cs
- WindowsIdentity.cs
- WebContext.cs
- MsmqTransportReceiveParameters.cs
- SelectionListComponentEditor.cs
- UIHelper.cs
- Wildcard.cs
- regiisutil.cs
- ClientSettingsSection.cs
- SecUtil.cs
- DiagnosticsConfiguration.cs
- EntitySet.cs
- Listbox.cs
- ImportedPolicyConversionContext.cs
- IdentitySection.cs
- Misc.cs
- SessionStateUtil.cs
- BevelBitmapEffect.cs
- TokenBasedSetEnumerator.cs
- Italic.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SourceSwitch.cs
- RuleInfoComparer.cs
- ProcessInfo.cs
- RayMeshGeometry3DHitTestResult.cs
- OdbcParameter.cs
- SubpageParagraph.cs
- FileDialog.cs
- ReferenceSchema.cs
- ConfigXmlReader.cs
- CollaborationHelperFunctions.cs
- OrthographicCamera.cs
- EventRecord.cs
- ISO2022Encoding.cs
- DynamicDataRoute.cs
- ProgressBar.cs
- SqlTopReducer.cs
- XmlSerializationGeneratedCode.cs
- BatchStream.cs
- DynamicAttribute.cs
- NotConverter.cs
- HyperLinkColumn.cs
- SerialPinChanges.cs
- PolicyManager.cs
- ToolStripRenderEventArgs.cs
- CommonDialog.cs
- ApplicationInterop.cs
- UpdatePanelTriggerCollection.cs
- thaishape.cs
- TraceSource.cs
- ClipboardProcessor.cs
- SmtpTransport.cs
- Vector3D.cs
- XmlQueryTypeFactory.cs
- TransformedBitmap.cs
- OleDbEnumerator.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- Script.cs
- DurableErrorHandler.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PageRanges.cs
- GenericIdentity.cs
- SerializationEventsCache.cs
- BuildProvider.cs
- EnumDataContract.cs
- ViewStateModeByIdAttribute.cs
- AssemblyCache.cs
- Span.cs
- CompoundFileStorageReference.cs
- BamlTreeMap.cs
- ApplicationServicesHostFactory.cs
- WebPartDisplayModeCollection.cs
- ProfileSettings.cs
- SingleResultAttribute.cs
- WinFormsSpinner.cs
- ProcessInfo.cs
- UnsafeNativeMethods.cs
- DelegateSerializationHolder.cs
- ExpressionBinding.cs
- BaseDataList.cs
- ContentElementAutomationPeer.cs
- basenumberconverter.cs
- XmlSerializationReader.cs
- ByeMessageCD1.cs
- VectorAnimationUsingKeyFrames.cs
- MetaModel.cs
- FullTextState.cs
- UpdatePanelTriggerCollection.cs
- CheckBox.cs
- EntityParameter.cs
- DocumentViewerBase.cs
- AmbientLight.cs
- CreateInstanceBinder.cs
- MachineKeyConverter.cs
- ResourceSet.cs