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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ByteStack.cs
- DelegateHelpers.cs
- StylusLogic.cs
- TemplateField.cs
- QilXmlReader.cs
- DoubleConverter.cs
- Debug.cs
- BookmarkManager.cs
- SignHashRequest.cs
- Mappings.cs
- VariableAction.cs
- DataConnectionHelper.cs
- AssemblyResourceLoader.cs
- XmlAtomErrorReader.cs
- XmlValidatingReaderImpl.cs
- XmlAttributeAttribute.cs
- UdpSocketReceiveManager.cs
- ConsoleKeyInfo.cs
- EventLogException.cs
- TraceSection.cs
- Triplet.cs
- ExtensionQuery.cs
- FunctionQuery.cs
- DataContext.cs
- ProcessHostServerConfig.cs
- DataGridViewCellValidatingEventArgs.cs
- GlobalItem.cs
- TextEmbeddedObject.cs
- StdRegProviderWrapper.cs
- FigureParagraph.cs
- altserialization.cs
- ProviderSettingsCollection.cs
- documentsequencetextcontainer.cs
- WindowsSolidBrush.cs
- HttpClientCertificate.cs
- BoundColumn.cs
- OracleEncoding.cs
- EventBuilder.cs
- BamlLocalizabilityResolver.cs
- CategoryGridEntry.cs
- OletxTransactionManager.cs
- PropertyInfoSet.cs
- AttributeUsageAttribute.cs
- basecomparevalidator.cs
- BitmapSourceSafeMILHandle.cs
- CheckoutException.cs
- MD5CryptoServiceProvider.cs
- TextEncodedRawTextWriter.cs
- SecurityPermission.cs
- UserControlDesigner.cs
- BitHelper.cs
- Span.cs
- LongMinMaxAggregationOperator.cs
- SetterBaseCollection.cs
- ManifestSignatureInformation.cs
- ContentPresenter.cs
- CommentEmitter.cs
- Pipe.cs
- ExternalFile.cs
- OperationResponse.cs
- Table.cs
- StatementContext.cs
- SafeRightsManagementHandle.cs
- Function.cs
- Base64WriteStateInfo.cs
- RepeaterItemEventArgs.cs
- FontNameEditor.cs
- EventRoute.cs
- DbUpdateCommandTree.cs
- ScriptResourceInfo.cs
- ChannelServices.cs
- FormViewDeletedEventArgs.cs
- MaskedTextProvider.cs
- Rotation3D.cs
- thaishape.cs
- ValidationResult.cs
- GPPOINTF.cs
- CodeArrayCreateExpression.cs
- ServiceProviders.cs
- GeneralTransform3DGroup.cs
- ValueTypeFieldReference.cs
- EntityFunctions.cs
- RowBinding.cs
- QueryOperatorEnumerator.cs
- GridViewSortEventArgs.cs
- CollectionViewGroup.cs
- ManagedWndProcTracker.cs
- Partitioner.cs
- CellConstant.cs
- Geometry3D.cs
- TextBoxDesigner.cs
- DataBindingExpressionBuilder.cs
- TabControl.cs
- SspiWrapper.cs
- DoubleStorage.cs
- OdbcCommandBuilder.cs
- HttpCacheVaryByContentEncodings.cs
- GiveFeedbackEventArgs.cs
- TempFiles.cs
- WS2007HttpBindingElement.cs