├── .gitignore
├── FontViewerPanel.xaml
├── FontViewerPanel.xaml.cs
├── LICENSE.txt
├── Plugin.cs
├── Properties
└── AssemblyInfo.cs
├── QuickLook.Plugin.FontViewer.csproj
├── QuickLook.Plugin.FontViewer.dll
├── QuickLook.Plugin.FontViewer.dll.config
├── QuickLook.Plugin.FontViewer.sln
├── QuickLook.Plugin.Metadata.Base.config
├── README.md
├── Scripts
├── pack-zip.ps1
└── update-version.ps1
├── Translations.config
└── app.config
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015/2017 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # Visual Studio 2017 auto generated files
33 | Generated\ Files/
34 |
35 | # MSTest test Results
36 | [Tt]est[Rr]esult*/
37 | [Bb]uild[Ll]og.*
38 |
39 | # NUNIT
40 | *.VisualState.xml
41 | TestResult.xml
42 |
43 | # Build Results of an ATL Project
44 | [Dd]ebugPS/
45 | [Rr]eleasePS/
46 | dlldata.c
47 |
48 | # Benchmark Results
49 | BenchmarkDotNet.Artifacts/
50 |
51 | # .NET Core
52 | project.lock.json
53 | project.fragment.lock.json
54 | artifacts/
55 | **/Properties/launchSettings.json
56 |
57 | # StyleCop
58 | StyleCopReport.xml
59 |
60 | # Files built by Visual Studio
61 | *_i.c
62 | *_p.c
63 | *_i.h
64 | *.ilk
65 | *.meta
66 | *.obj
67 | *.iobj
68 | *.pch
69 | *.pdb
70 | *.ipdb
71 | *.pgc
72 | *.pgd
73 | *.rsp
74 | *.sbr
75 | *.tlb
76 | *.tli
77 | *.tlh
78 | *.tmp
79 | *.tmp_proj
80 | *.log
81 | *.vspscc
82 | *.vssscc
83 | .builds
84 | *.pidb
85 | *.svclog
86 | *.scc
87 |
88 | # Chutzpah Test files
89 | _Chutzpah*
90 |
91 | # Visual C++ cache files
92 | ipch/
93 | *.aps
94 | *.ncb
95 | *.opendb
96 | *.opensdf
97 | *.sdf
98 | *.cachefile
99 | *.VC.db
100 | *.VC.VC.opendb
101 |
102 | # Visual Studio profiler
103 | *.psess
104 | *.vsp
105 | *.vspx
106 | *.sap
107 |
108 | # Visual Studio Trace Files
109 | *.e2e
110 |
111 | # TFS 2012 Local Workspace
112 | $tf/
113 |
114 | # Guidance Automation Toolkit
115 | *.gpState
116 |
117 | # ReSharper is a .NET coding add-in
118 | _ReSharper*/
119 | *.[Rr]e[Ss]harper
120 | *.DotSettings.user
121 |
122 | # JustCode is a .NET coding add-in
123 | .JustCode
124 |
125 | # TeamCity is a build add-in
126 | _TeamCity*
127 |
128 | # DotCover is a Code Coverage Tool
129 | *.dotCover
130 |
131 | # AxoCover is a Code Coverage Tool
132 | .axoCover/*
133 | !.axoCover/settings.json
134 |
135 | # Visual Studio code coverage results
136 | *.coverage
137 | *.coveragexml
138 |
139 | # NCrunch
140 | _NCrunch_*
141 | .*crunch*.local.xml
142 | nCrunchTemp_*
143 |
144 | # MightyMoose
145 | *.mm.*
146 | AutoTest.Net/
147 |
148 | # Web workbench (sass)
149 | .sass-cache/
150 |
151 | # Installshield output folder
152 | [Ee]xpress/
153 |
154 | # DocProject is a documentation generator add-in
155 | DocProject/buildhelp/
156 | DocProject/Help/*.HxT
157 | DocProject/Help/*.HxC
158 | DocProject/Help/*.hhc
159 | DocProject/Help/*.hhk
160 | DocProject/Help/*.hhp
161 | DocProject/Help/Html2
162 | DocProject/Help/html
163 |
164 | # Click-Once directory
165 | publish/
166 |
167 | # Publish Web Output
168 | *.[Pp]ublish.xml
169 | *.azurePubxml
170 | # Note: Comment the next line if you want to checkin your web deploy settings,
171 | # but database connection strings (with potential passwords) will be unencrypted
172 | *.pubxml
173 | *.publishproj
174 |
175 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
176 | # checkin your Azure Web App publish settings, but sensitive information contained
177 | # in these scripts will be unencrypted
178 | PublishScripts/
179 |
180 | # NuGet Packages
181 | *.nupkg
182 | # The packages folder can be ignored because of Package Restore
183 | **/[Pp]ackages/*
184 | # except build/, which is used as an MSBuild target.
185 | !**/[Pp]ackages/build/
186 | # Uncomment if necessary however generally it will be regenerated when needed
187 | #!**/[Pp]ackages/repositories.config
188 | # NuGet v3's project.json files produces more ignorable files
189 | *.nuget.props
190 | *.nuget.targets
191 |
192 | # Microsoft Azure Build Output
193 | csx/
194 | *.build.csdef
195 |
196 | # Microsoft Azure Emulator
197 | ecf/
198 | rcf/
199 |
200 | # Windows Store app package directories and files
201 | AppPackages/
202 | BundleArtifacts/
203 | Package.StoreAssociation.xml
204 | _pkginfo.txt
205 | *.appx
206 |
207 | # Visual Studio cache files
208 | # files ending in .cache can be ignored
209 | *.[Cc]ache
210 | # but keep track of directories ending in .cache
211 | !*.[Cc]ache/
212 |
213 | # Others
214 | ClientBin/
215 | ~$*
216 | *~
217 | *.dbmdl
218 | *.dbproj.schemaview
219 | *.jfm
220 | *.pfx
221 | *.publishsettings
222 | orleans.codegen.cs
223 |
224 | # Including strong name files can present a security risk
225 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
226 | #*.snk
227 |
228 | # Since there are multiple workflows, uncomment next line to ignore bower_components
229 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
230 | #bower_components/
231 |
232 | # RIA/Silverlight projects
233 | Generated_Code/
234 |
235 | # Backup & report files from converting an old project file
236 | # to a newer Visual Studio version. Backup files are not needed,
237 | # because we have git ;-)
238 | _UpgradeReport_Files/
239 | Backup*/
240 | UpgradeLog*.XML
241 | UpgradeLog*.htm
242 | ServiceFabricBackup/
243 | *.rptproj.bak
244 |
245 | # SQL Server files
246 | *.mdf
247 | *.ldf
248 | *.ndf
249 |
250 | # Business Intelligence projects
251 | *.rdl.data
252 | *.bim.layout
253 | *.bim_*.settings
254 | *.rptproj.rsuser
255 |
256 | # Microsoft Fakes
257 | FakesAssemblies/
258 |
259 | # GhostDoc plugin setting file
260 | *.GhostDoc.xml
261 |
262 | # Node.js Tools for Visual Studio
263 | .ntvs_analysis.dat
264 | node_modules/
265 |
266 | # Visual Studio 6 build log
267 | *.plg
268 |
269 | # Visual Studio 6 workspace options file
270 | *.opt
271 |
272 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
273 | *.vbw
274 |
275 | # Visual Studio LightSwitch build output
276 | **/*.HTMLClient/GeneratedArtifacts
277 | **/*.DesktopClient/GeneratedArtifacts
278 | **/*.DesktopClient/ModelManifest.xml
279 | **/*.Server/GeneratedArtifacts
280 | **/*.Server/ModelManifest.xml
281 | _Pvt_Extensions
282 |
283 | # Paket dependency manager
284 | .paket/paket.exe
285 | paket-files/
286 |
287 | # FAKE - F# Make
288 | .fake/
289 |
290 | # JetBrains Rider
291 | .idea/
292 | *.sln.iml
293 |
294 | # CodeRush
295 | .cr/
296 |
297 | # Python Tools for Visual Studio (PTVS)
298 | __pycache__/
299 | *.pyc
300 |
301 | # Cake - Uncomment if you are using it
302 | # tools/**
303 | # !tools/packages.config
304 |
305 | # Tabs Studio
306 | *.tss
307 |
308 | # Telerik's JustMock configuration file
309 | *.jmconfig
310 |
311 | # BizTalk build output
312 | *.btp.cs
313 | *.btm.cs
314 | *.odx.cs
315 | *.xsd.cs
316 |
317 | # OpenCover UI analysis results
318 | OpenCover/
319 |
320 | # Azure Stream Analytics local run output
321 | ASALocalRun/
322 |
323 | # MSBuild Binary and Structured Log
324 | *.binlog
325 |
326 | # NVidia Nsight GPU debugger configuration file
327 | *.nvuser
328 |
329 | # MFractors (Xamarin productivity tool) working folder
330 | .mfractor/
331 | /*.qlplugin
332 | /GitVersion.cs
333 | /QuickLook.Plugin.Metadata.config
334 |
--------------------------------------------------------------------------------
/FontViewerPanel.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/FontViewerPanel.xaml.cs:
--------------------------------------------------------------------------------
1 | // Copyright © 2018 Jeremy Hart
2 | //
3 | // This file a plugin for the QuickLook program.
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see
17 |
18 | using System;
19 | using System.Linq;
20 | using System.Windows.Controls;
21 | using System.Windows.Documents;
22 | using System.Windows.Media;
23 | using System.Globalization;
24 | using QuickLook.Common.Helpers;
25 |
26 | namespace QuickLook.Plugin.FontViewer
27 | {
28 | public partial class FontViewerPanel : UserControl
29 | {
30 | public FontViewerPanel()
31 | {
32 | InitializeComponent();
33 |
34 |
35 | var TestString = TranslationHelper.Get("SAMPLE_TEXT");
36 |
37 | System.Windows.Thickness marginbottom = new System.Windows.Thickness(0, 0, 0, 5);
38 |
39 | var alpha = new Paragraph();
40 | alpha.Inlines.Add(new Run(TranslationHelper.Get("ALPHA")));
41 | alpha.Margin = marginbottom;
42 | RichTB.Document.Blocks.Add(alpha);
43 |
44 | var numeric = new Paragraph();
45 | numeric.Inlines.Add(new Run(TranslationHelper.Get("DIGITS") + TranslationHelper.Get("PUNCTUATION") + TranslationHelper.Get("SYMBOLS")));
46 | numeric.Margin = marginbottom;
47 | RichTB.Document.Blocks.Add(numeric);
48 |
49 |
50 | var size12 = new Paragraph();
51 | size12.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
52 | size12.Margin = marginbottom;
53 | size12.FontSize = 12;
54 | RichTB.Document.Blocks.Add(size12);
55 |
56 | var size18 = new Paragraph();
57 | size18.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
58 | size18.FontSize = 18;
59 | size18.Margin = marginbottom;
60 | RichTB.Document.Blocks.Add(size18);
61 |
62 | var size24 = new Paragraph();
63 | size24.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
64 | size24.FontSize = 24;
65 | size24.Margin = marginbottom;
66 | RichTB.Document.Blocks.Add(size24);
67 |
68 | var size36 = new Paragraph();
69 | size36.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
70 | size36.FontSize = 36;
71 | size36.Margin = marginbottom;
72 | RichTB.Document.Blocks.Add(size36);
73 |
74 | var size48 = new Paragraph();
75 | size48.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
76 | size48.FontSize = 48;
77 | size48.Margin = marginbottom;
78 | RichTB.Document.Blocks.Add(size48);
79 |
80 | var size60 = new Paragraph();
81 | size60.Inlines.Add(new Run(string.Format(TestString, Environment.TickCount)));
82 | size60.FontSize = 60;
83 | size60.Margin = marginbottom;
84 | RichTB.Document.Blocks.Add(size60);
85 |
86 | }
87 |
88 | public void LoadFont(String path)
89 | {
90 |
91 | var a = Fonts.GetFontFamilies(path);
92 |
93 | GlyphTypeface gf = new GlyphTypeface(new Uri(path));
94 |
95 |
96 | String FontFamilyName = gf.FamilyNames[CultureInfo.CurrentCulture] != null ? gf.FamilyNames[CultureInfo.CurrentCulture] : gf.FamilyNames.Values.FirstOrDefault();
97 | String FontFaceName = gf.FaceNames[CultureInfo.CurrentCulture] !=null? gf.FaceNames[CultureInfo.CurrentCulture] : gf.FaceNames.Values.FirstOrDefault();
98 | String Manufacturer = gf.ManufacturerNames[CultureInfo.CurrentCulture] != null ? gf.ManufacturerNames[CultureInfo.CurrentCulture] : gf.ManufacturerNames.Values.FirstOrDefault();
99 | String Copyright = gf.Copyrights[CultureInfo.CurrentCulture] != null ? gf.Copyrights[CultureInfo.CurrentCulture] : gf.Copyrights.Values.FirstOrDefault();
100 |
101 |
102 | var FontName = new Paragraph();
103 | FontName.Inlines.Add(new Run(string.Format(FontFamilyName + " " + FontFaceName, Environment.TickCount)));
104 | FontName.FontSize = 45;
105 | FontName.FontFamily = a.ToArray()[0];
106 | FontName.Margin = new System.Windows.Thickness(0, 0, 0, 0);
107 | RichTBDetails.Document.Blocks.Add(FontName);
108 |
109 | if (Manufacturer != null)
110 | {
111 | var Foundry = new Paragraph();
112 | Foundry.Inlines.Add(new Run(string.Format("by " + Manufacturer, Environment.TickCount)));
113 | Foundry.FontSize = 14;
114 | Foundry.Margin = new System.Windows.Thickness(0, 0, 0, 0);
115 | RichTBDetails.Document.Blocks.Add(Foundry);
116 | }
117 |
118 |
119 | if (Copyright != null)
120 | {
121 | var CopyR = new Paragraph();
122 | CopyR.Inlines.Add(new Run(string.Format(Copyright, Environment.TickCount)));
123 | CopyR.FontSize = 14;
124 | CopyR.Margin = new System.Windows.Thickness(0, 0, 0, 0);
125 | RichTBDetails.Document.Blocks.Add(CopyR);
126 | }
127 |
128 |
129 | RichTB.FontFamily = a.ToArray()[0];
130 |
131 | }
132 | }
133 | }
134 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Jeremy Hart
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/Plugin.cs:
--------------------------------------------------------------------------------
1 | // Copyright © 2018 Jeremy Hart
2 | //
3 | // This file a plugin for the QuickLook program.
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see .
17 |
18 | using System;
19 | using System.IO;
20 | using System.Windows;
21 | using QuickLook.Common.Plugin;
22 | using System.Windows.Media;
23 | using System.Linq;
24 | using System.Globalization;
25 |
26 | namespace QuickLook.Plugin.FontViewer
27 | {
28 | public class Plugin : IViewer
29 | {
30 |
31 | private FontViewerPanel _fontPanel;
32 |
33 | public int Priority => int.MaxValue;
34 |
35 | public void Init()
36 | {
37 | }
38 |
39 | public bool CanHandle(string path)
40 | {
41 | string[] Extensions = { ".ttf", ".otf" };
42 |
43 | return !Directory.Exists(path) && Extensions.Any(path.ToLower().EndsWith);
44 | }
45 |
46 | public void Prepare(string path, ContextObject context)
47 | {
48 | context.PreferredSize = new Size { Width = 1300, Height = 500 };
49 | }
50 |
51 | public void View(string path, ContextObject context)
52 | {
53 |
54 | GlyphTypeface gf = new GlyphTypeface(new Uri(path));
55 |
56 | String FontFamilyName = gf.FamilyNames[CultureInfo.CurrentCulture] != null ? gf.FamilyNames[CultureInfo.CurrentCulture] : gf.FamilyNames.Values.FirstOrDefault();
57 | String FontFaceName = gf.FaceNames[CultureInfo.CurrentCulture] != null ? gf.FaceNames[CultureInfo.CurrentCulture] : gf.FaceNames.Values.FirstOrDefault();
58 |
59 | _fontPanel = new FontViewerPanel();
60 | context.ViewerContent = _fontPanel;
61 | context.Title = FontFamilyName + " " + FontFaceName;
62 |
63 | _fontPanel.LoadFont(path);
64 |
65 | context.IsBusy = false;
66 |
67 |
68 | }
69 |
70 | public void Cleanup()
71 | {
72 | GC.SuppressFinalize(this);
73 |
74 |
75 | }
76 |
77 |
78 | }
79 | }
--------------------------------------------------------------------------------
/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // Copyright © 2018 Jeremy Hart
2 | //
3 | // This file is a plugin for the QuickLook program.
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see .
17 |
18 | using System.Reflection;
19 | using System.Runtime.InteropServices;
20 |
21 | // General Information about an assembly is controlled through the following
22 | // set of attributes. Change these attribute values to modify the information
23 | // associated with an assembly.
24 | [assembly: AssemblyTitle("QuickLook.Plugin.FontViewer")]
25 | [assembly: AssemblyDescription("Plugin for pre-viewing TTF & OTF fonts with QuickLook")]
26 | [assembly: AssemblyConfiguration("")]
27 | [assembly: AssemblyCompany("")]
28 | [assembly: AssemblyProduct("QuickLook.Plugin.FontViewer")]
29 | [assembly: AssemblyCopyright("Copyright © 2018 Jeremy Hart")]
30 | [assembly: AssemblyTrademark("")]
31 | [assembly: AssemblyCulture("")]
32 |
33 | // Setting ComVisible to false makes the types in this assembly not visible
34 | // to COM components. If you need to access a type in this assembly from
35 | // COM, set the ComVisible attribute to true on that type.
36 | [assembly: ComVisible(false)]
37 |
38 | // The following GUID is for the ID of the typelib if this project is exposed to COM
39 | [assembly: Guid("a82ac69c-edf5-4f0d-8cbd-8e5e3c06e64d")]
40 | [assembly: AssemblyVersion("1.0.0")]
41 | [assembly: AssemblyFileVersion("1.0.0")]
42 |
43 | // Version information for an assembly consists of the following four values:
44 | //
45 | // Major Version
46 | // Minor Version
47 | // Build Number
48 | // Revision
49 | //
50 | // You can specify all the values or you can default the Build and Revision Numbers
51 | // by using the '*' as shown below:
52 | // [assembly: AssemblyVersion("1.0.*")]
--------------------------------------------------------------------------------
/QuickLook.Plugin.FontViewer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}
8 | Library
9 | Properties
10 | QuickLook.Plugin.FontViewer
11 | QuickLook.Plugin.FontViewer
12 | v4.6.2
13 | 512
14 |
15 |
16 |
17 |
18 |
19 | true
20 | ..\..\Build\Debug\QuickLook.Plugin\QuickLook.Plugin.FontViewer\
21 | DEBUG;TRACE
22 | true
23 | full
24 | x86
25 | prompt
26 | MinimumRecommendedRules.ruleset
27 |
28 |
29 | ..\..\Build\Release\QuickLook.Plugin\QuickLook.Plugin.FontViewer\
30 | TRACE
31 | true
32 | true
33 | pdbonly
34 | x86
35 | prompt
36 | MinimumRecommendedRules.ruleset
37 |
38 |
39 | true
40 | .\
41 | DEBUG;TRACE
42 | true
43 | full
44 | AnyCPU
45 | prompt
46 | MinimumRecommendedRules.ruleset
47 |
48 |
49 | bin\Release\
50 | TRACE
51 | true
52 | true
53 | pdbonly
54 | AnyCPU
55 | prompt
56 | MinimumRecommendedRules.ruleset
57 |
58 |
59 | false
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | FontViewerPanel.xaml
70 |
71 |
72 |
73 |
74 | Designer
75 | MSBuild:Compile
76 |
77 |
78 |
79 |
80 |
81 | Designer
82 | PreserveNewest
83 |
84 |
85 |
86 |
87 |
88 |
89 | ..\repos\QuickLook\Build\Debug\QuickLook.Common.dll
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
--------------------------------------------------------------------------------
/QuickLook.Plugin.FontViewer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeremyhart/QuickLook.Plugin.FontViewer/ac5553bdad85e6a013e1b4d35dc43e4d61a8cf33/QuickLook.Plugin.FontViewer.dll
--------------------------------------------------------------------------------
/QuickLook.Plugin.FontViewer.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/QuickLook.Plugin.FontViewer.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27703.2042
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QuickLook.Plugin.FontViewer", "QuickLook.Plugin.FontViewer.csproj", "{13B0CF5A-C6BB-466B-B456-33B463DD3ED4}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Debug|x86 = Debug|x86
12 | Release|Any CPU = Release|Any CPU
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Debug|x86.ActiveCfg = Debug|x86
19 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Debug|x86.Build.0 = Debug|x86
20 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Release|x86.ActiveCfg = Release|x86
23 | {13B0CF5A-C6BB-466B-B456-33B463DD3ED4}.Release|x86.Build.0 = Release|x86
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {8D1F2498-F7E8-4369-8365-30DCFEB11C95}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/QuickLook.Plugin.Metadata.Base.config:
--------------------------------------------------------------------------------
1 |
2 |
3 | QuickLook.Plugin.FontViewer
4 | 1
5 | This plugin enables font file pre-viewing for .OTF & .TTF files.
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # QuickLook.Plugin.FontViewer
2 | 
3 | [](https://github.com/jeremyhart/QuickLook.Plugin.FontViewer/releases)
4 | [](https://github.com/jeremyhart/QuickLook.Plugin.HelixViewer)
5 |
6 | A plugin for pre-viewing fonts in QuickLook: https://github.com/xupefei/QuickLook
7 |
8 | 
9 |
10 | ### Supported Filetypes
11 | .OTF, .TTF
12 |
13 | ### Releases
14 | [Latest Releases][1]
15 |
16 | ### Download & Installation
17 | 1. Go to [Release page][1] and download the latest version.
18 | 2. Make sure that you have QuickLook running in the background. Go to your Download folder, and press Spacebar on the downloaded `.qlplugin` file.
19 | 3. Click the “Install” button in the popup window.
20 | 4. Restart QuickLook.
21 |
22 | [1]:https://github.com/jeremyhart/QuickLook.Plugin.FontViewer/releases
23 |
--------------------------------------------------------------------------------
/Scripts/pack-zip.ps1:
--------------------------------------------------------------------------------
1 | Remove-Item ..\QuickLook.Plugin.FontViewer.qlplugin -ErrorAction SilentlyContinue
2 |
3 | $files = Get-ChildItem -Path ..\bin\Release\ -Exclude *.pdb,*.xml
4 | $files += "..\QuickLook.Plugin.Metadata.config"
5 | Compress-Archive $files .\QuickLook.Plugin.FontViewer.zip
6 | Move-Item .\QuickLook.Plugin.FontViewer.zip ..\QuickLook.Plugin.FontViewer.qlplugin
--------------------------------------------------------------------------------
/Scripts/update-version.ps1:
--------------------------------------------------------------------------------
1 | $tag = git describe --always --tags "--abbrev=0"
2 | $revision = git describe --always --tags
3 |
4 | $text = @"
5 | // This file is generated by update-version.ps1
6 |
7 | using System.Reflection;
8 |
9 | [assembly: AssemblyVersion("$tag")]
10 | [assembly: AssemblyInformationalVersion("$revision")]
11 | "@
12 |
13 | $text | Out-File $PSScriptRoot\..\GitVersion.cs -Encoding utf8
14 |
15 |
16 | $xml = [xml](Get-Content $PSScriptRoot\..\QuickLook.Plugin.Metadata.Base.config)
17 | $xml.Metadata.Version="$revision"
18 | $xml.Save("$PSScriptRoot\..\QuickLook.Plugin.Metadata.config")
--------------------------------------------------------------------------------
/Translations.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
6 | 1234567890
7 | .:,;!?(){}[]
8 | +/-*@#$%
9 | The quick brown fox jumped over the lazy dog
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------