बूटस्ट्रैप glyphicons_halflings के विशेष मामले के लिए।
आप भी स्थापित करने होंगे इसलिए मिलान WOFF, ईओटी, और svg एक ही समय में वेबफ़ॉन्ट, आप कर सकते हैं: जो ICE07 चेतावनी दबाकर बिना डिजाइन इस समाधान काम करता है द्वारा वेबसाइट के फोंट फ़ोल्डर में चला जाता है ttf फ़ॉन्ट निर्दिष्ट करें कि टीटीएफ फ़ाइल में एक साथी फ़ाइल है और यह ट्रू टाइप फ़ॉन्ट नहीं है।
आप भोलेपन से सिर्फ अपनी साइटों के Halflings फ़ॉन्ट फ़ाइलों को जोड़ने के लिए एक WiX टुकड़ा फोंट इस तरह फ़ोल्डर बनाते हैं:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="WebsiteFontsDir">
<Component Id="CMP_WebsiteFonts" Guid="{********-482C-4924-B06E-9FAC34F89D1D}" KeyPath="yes">
<File Id="glyphicons_halflings_regular.eot" Source="$(var.ViewerModule.TargetDir)Police\fonts\glyphicons-halflings-regular.eot" />
<File Id="glyphicons_halflings_regular.svg" Source="$(var.ViewerModule.TargetDir)Police\fonts\glyphicons-halflings-regular.svg" />
<File Id="glyphicons_halflings_regular.woff" Source="$(var.ViewerModule.TargetDir)Police\fonts\glyphicons-halflings-regular.woff" />
</Component>
<Component Id="CMP_WebsiteFonts2" Guid="{********-BFFE-441D-B8F4-156DD596B09F}" KeyPath="yes">
<File Id="glyphicons_halflings_regular.ttf" Source="$(var.ViewerModule.TargetDir)Police\fonts\glyphicons-halflings-regular.ttf" DefaultVersion="1.001" TrueType="yes" />
</Component>
</DirectoryRef>
</Fragment>
यह फ़ाइलें जोड़ देगा (आवश्यकतानुसार आंशिक GUIDs की जगह) सही स्थान पर, लेकिन आपके समाधान का निर्माण ICE07 प्रमाणीकरण चेतावनी उत्पन्न करेगा कि इस तथ्य को लेकर चिंतित है कि एक TTF फ़ॉन्ट फ़ाइल को Windows फ़ॉन्ट फ़ोल्डर में जाना चाहिए।
यह देखते हुए कि यह एक वेब फ़ॉन्ट है और यह वहां जाने वाला नहीं है जो बहुत परेशान है, लेकिन शुक्र है क्योंकि यह एक वेब फ़ॉन्ट है जिसे आपको आईई, एज, क्रोम, फ़ायरफ़ॉक्स इत्यादि को खुश करने के लिए कई प्रारूपों में चाहिए ... इसका मतलब है कि आप चेतावनी को खत्म करने के लिए गैर टीटीएफ फ़ॉन्ट वेरिएंट की उपस्थिति का उपयोग कर सकते हैं।
Refactor इस तरह टुकड़ा:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="WebsiteFontsDir">
<Component Id="CMP_WebsiteFonts" Guid="{********-482C-4924-B06E-9FAC34F89D1D}" KeyPath="yes">
<File Id="glyphicons_halflings_regular.eot" Source="$(var.AZViewerModule.TargetDir)fonts\glyphicons-halflings-regular.eot" />
<File Id="glyphicons_halflings_regular.svg" Source="$(var.AZViewerModule.TargetDir)fonts\glyphicons-halflings-regular.svg" />
<File Id="glyphicons_halflings_regular.woff" Source="$(var.AZViewerModule.TargetDir)fonts\glyphicons-halflings-regular.woff" />
</Component>
<Component Id="CMP_WebsiteFonts2" Guid="{********-BFFE-441D-B8F4-156DD596B09F}">
<File Id="glyphicons_halflings_regular.ttf"
Source="$(var.ViewerModule.TargetDir)fonts\glyphicons-halflings-regular.ttf"
TrueType="no"
KeyPath="no"
CompanionFile="glyphicons_halflings_regular.eot"/>
</Component>
</DirectoryRef>
</Fragment>
</Wix>
यहाँ हम अपने एक TTF फ़ॉन्ट इनकार करते हैं, और एक साथी फ़ाइल है कि अन्य वेब फ़ॉन्ट फ़ाइलों में से एक है के साथ प्रदान करते हैं। सब कुछ इंस्टॉल करता है जहां आप उम्मीद करते हैं और ICE07 का उत्पादन नहीं होता है।
स्रोत
2016-10-12 10:06:55
मुझे डीएलएल फाइलों के साथ एक ही समस्या थी; ICE07 को अक्षम करने से कुछ भी नहीं बदला, लेकिन ICE60 को अक्षम करने से चेतावनी बंद हो गई। –