Revision: 28260
          http://sourceforge.net/p/bibdesk/svn/28260
Author:   hofman
Date:     2023-05-26 09:17:52 +0000 (Fri, 26 May 2023)
Log Message:
-----------
provide font family name for webgroup pages through templating to get the 
proper system font

Modified Paths:
--------------
    trunk/bibdesk/BDSKDownloadManager.m
    trunk/bibdesk/BDSKWebParser.m
    trunk/bibdesk/en.lproj/WebGroupDownloads.html
    trunk/bibdesk/en.lproj/WebGroupStartPage.html

Modified: trunk/bibdesk/BDSKDownloadManager.m
===================================================================
--- trunk/bibdesk/BDSKDownloadManager.m 2023-05-25 16:58:04 UTC (rev 28259)
+++ trunk/bibdesk/BDSKDownloadManager.m 2023-05-26 09:17:52 UTC (rev 28260)
@@ -138,6 +138,8 @@
     return [NSArray arrayWithObjects:@"removeFinishedDownloads", 
@"removeFailedDownloads", nil];
 }
 
++ (NSString *)fontFamilyName { return [[NSFont systemFontOfSize:0.0] 
familyName]; }
+
 #pragma mark NSURLDownload delegate protocol
 
 - (void)downloadDidBegin:(NSURLDownload *)URLDownload {

Modified: trunk/bibdesk/BDSKWebParser.m
===================================================================
--- trunk/bibdesk/BDSKWebParser.m       2023-05-25 16:58:04 UTC (rev 28259)
+++ trunk/bibdesk/BDSKWebParser.m       2023-05-26 09:17:52 UTC (rev 28260)
@@ -154,6 +154,8 @@
     
 + (NSArray *)genericParsers  { return [self 
parsersForFeature:BDSKParserFeatureGeneric]; }
 
++ (NSString *)fontFamilyName { return [[NSFont systemFontOfSize:0.0] 
familyName]; }
+
 #pragma mark Concrete web parser
 
 - (id)init {

Modified: trunk/bibdesk/en.lproj/WebGroupDownloads.html
===================================================================
--- trunk/bibdesk/en.lproj/WebGroupDownloads.html       2023-05-25 16:58:04 UTC 
(rev 28259)
+++ trunk/bibdesk/en.lproj/WebGroupDownloads.html       2023-05-26 09:17:52 UTC 
(rev 28260)
@@ -7,7 +7,7 @@
        <title>Downloads</title>
        <style type="text/css">
                * { margin: 0px; padding: 0px; }
-               body { font-family: "SF Pro", "Lucida Grande"; font-size: 13px; 
padding: 0px; }
+               body { font-family: "<$fontFamilyName/>", sans-serif; 
font-size: 13px; padding: 0px; }
                h1 { font-size: 16px; margin: 10px; color: #999; }
                .downloads { width: 100%; border-width: 0px 0px 1px 0px; 
border-spacing: 0px; border-style: solid; border-color: #999; }
                .icon { margin: 2px; width: 32px; height: 32px; }

Modified: trunk/bibdesk/en.lproj/WebGroupStartPage.html
===================================================================
--- trunk/bibdesk/en.lproj/WebGroupStartPage.html       2023-05-25 16:58:04 UTC 
(rev 28259)
+++ trunk/bibdesk/en.lproj/WebGroupStartPage.html       2023-05-26 09:17:52 UTC 
(rev 28260)
@@ -7,7 +7,7 @@
        <title>BibDesk Web Group</title>
        <style type="text/css">
                * { margin: 0px; padding: 0px; }
-               body { font-family: "SF Pro", "Lucida Grande"; font-size: 13px; 
padding: 1em; }
+               body { font-family: "<$fontFamilyName/>", sans-serif; 
font-size: 13px; padding: 1em; }
                .right { text-align: right; display: block; float: right; 
margin-left: 1em; }
                .text, .columns { max-width: 50em; margin: auto; }
                .columns { margin-top: 1em; overflow: hidden; }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to