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
- HandleRef.cs
- ReachDocumentPageSerializer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ColumnResult.cs
- ScriptReference.cs
- RuleCache.cs
- ArithmeticException.cs
- ResizeGrip.cs
- PinnedBufferMemoryStream.cs
- RectangleF.cs
- ActivityMarkupSerializer.cs
- ValidationRule.cs
- HandoffBehavior.cs
- WebPartActionVerb.cs
- Component.cs
- ApplicationHost.cs
- AtomContentProperty.cs
- TextWriterEngine.cs
- DefaultSerializationProviderAttribute.cs
- ArraySegment.cs
- _CommandStream.cs
- Stacktrace.cs
- OrderedHashRepartitionEnumerator.cs
- BitmapFrameDecode.cs
- MultiBindingExpression.cs
- WebBrowserProgressChangedEventHandler.cs
- PrintDocument.cs
- HandlerWithFactory.cs
- LinqDataSourceDisposeEventArgs.cs
- FontStretch.cs
- BindingExpressionUncommonField.cs
- StrongNameMembershipCondition.cs
- Configuration.cs
- Socket.cs
- TrackingConditionCollection.cs
- HandlerFactoryCache.cs
- ResolveCompletedEventArgs.cs
- EncoderFallback.cs
- RSACryptoServiceProvider.cs
- GlyphShapingProperties.cs
- ProcessModelInfo.cs
- SkewTransform.cs
- EndPoint.cs
- HwndSubclass.cs
- DependentList.cs
- CustomLineCap.cs
- GridItemPattern.cs
- ContextItemManager.cs
- ServiceModelActivity.cs
- QueryOptionExpression.cs
- GPRECT.cs
- EventWaitHandle.cs
- HttpRequest.cs
- MeshGeometry3D.cs
- GridLengthConverter.cs
- EntitySetBaseCollection.cs
- StructuralComparisons.cs
- NativeMethods.cs
- ViewStateException.cs
- Win32Exception.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- OneWayChannelListener.cs
- DecoderExceptionFallback.cs
- SiteMapDataSource.cs
- SystemPens.cs
- SessionPageStateSection.cs
- XmlSortKey.cs
- DataSourceHelper.cs
- AuthenticatingEventArgs.cs
- WindowsScroll.cs
- CollectionBuilder.cs
- sqlmetadatafactory.cs
- PassportAuthenticationModule.cs
- ReadOnlyPermissionSet.cs
- XmlSchemaInfo.cs
- webbrowsersite.cs
- TimerEventSubscription.cs
- InfiniteTimeSpanConverter.cs
- ViewBase.cs
- JsonSerializer.cs
- HwndSubclass.cs
- ModelItem.cs
- XmlCharacterData.cs
- RequestSecurityTokenForGetBrowserToken.cs
- DocumentApplicationJournalEntryEventArgs.cs
- WebHeaderCollection.cs
- UInt16Converter.cs
- ObjectPersistData.cs
- EmbeddedMailObject.cs
- MetaChildrenColumn.cs
- WpfGeneratedKnownProperties.cs
- smtpconnection.cs
- HostingEnvironmentSection.cs
- IsolatedStorage.cs
- SystemPens.cs
- RSACryptoServiceProvider.cs
- EventListenerClientSide.cs
- Label.cs
- ListControlStringCollectionEditor.cs
- TransformConverter.cs