Font selection view control in Web Gallery

LR4.1 RC2
I wanted to be able to change the font type from the UI panel using a font select popup.
This control really only seems to exist in the inbuilt edit modes (eg: id plate and watermark) so I have tried a workround which seems to work OK so far. Maybe it will help someone else out working with webengines.
Mac/OSX only at this stage - good source file in Windows may be font.inf but would require a bit of parsing or get a folder listing somehow.
Basically I read in the contents of the fonts.list file - which appears in the OSX fonts folders - and then massage the contents to get a raw list of the fonts.
This raw list is then read into a lua table and consumed by the UI popup control.
Should there be an obvious way that I haven't seen then just give me time to find a banana to eat ... anyway here goes -
Changing the font type for the cell index numbers.
Grid cells use cellIndex to give the photo number and in my webengine the css class is .itemNumber       
Data Model references -   Note:   %s is important for select to work - if %q is used select will work but font won't change ( %q adds quotes to the string ).
            ["appearance.itemNumber.font"] = function() return string.format( "%s", nonCSS.itemNumberFontSize .. "px " .. nonCSS.itemNumber.font ) end,
            ["nonCSS.itemNumberFontSize"] = 60,
            ["nonCSS.itemNumber.font"] = "inherit", 
            fontlistpath = LrPathUtils.child('/Library/Fonts','')    -- OSX Default fonts
Code just prior to LR UI Views -
        deffonts = templatepath .. "/pgresources/" .. 'osxdeffont.txt'      -- templatepath is the root path of the webengine - this is the tweaked OSX fonts.list file
        function readFontsFile( deffonts )
            local fileLines = io.lines( deffonts ) 
            ff3 = {}           
            for line in io.lines(deffonts) do
Filter lines here ...
eg:   -
                line = string.sub(line, 17)   -- remove 1st 16 chrs        (/Library/Fonts//Osaka.ttf)
                line = string.gsub(line, "(.ttf)", "")
                local kline = line
                   local vline = line
                   table.insert(ff3, { title =  kline ,value = vline })
            end
        end
LR UI View for font select -
            f:popup_row {
                title = "Font family :",
                bindingValue = "nonCSS.itemNumber.font",
                items =  ff3,
                bindingEnabled = "appearance.itemNumber.display",   -- control should be disabled if display checkbox false
                tooltip = "Choose wisely Dave!",
Using this method is not perfect but gives a good selection of fonts - I found that to improve the success rate the default font file was copied into the webengine
resources folder and tweaked. eg:  the default file gives Brush Script.ttf but I needed Brush Script MT to work, similarly with Arial Rounded Bold which needed changing
to Arial Rounded MT Bold
Basically to find the correct descriptions you could do far worse than to use the ones in the edit selections used by the ID Plate/watermarking features.
            Well there you go ...
As an aside I did try an undocumented control which on double click popped up a system font selection dialog (the whole nine yards) but  couldn't get it to link to the css class so I didn't persist - not a good idea to use undocumented controls but can be fun to play with.
    f:font_picker {
        font = "Copperplate",     -- showed font as highlighted when picker opened.
        width = 80,
        value = "Arial",    -- appeared on control (title ??) - this value only changed according to the font selected after double-clicking on another hidden control (f:image_well)
        bindingValue = "nonCSS.itemNumber.font",  -- linkage didn't work
Again, unless I missed it, it would be really good to have the font_picker documented and working for the web gallery views.  Fonts seem to be a murky area -
probably accounts for the hassles I am getting with the watermarking feature as well.
Update :
If the font doesn't work try using the PostScript name as a value which invariably works.
eg: Handwriting - Dakota  will not work but Handwriting-Dakota will.
     Arial Bold will not work but Arial-BoldMT will.

I don't think that there is any option to set the default view in the web album. If anyone has found an option to do this, then I will like to know as well.
Quite a lot of the settings in web album seams to be "hard coded" and only a few settings are available for users to control.
Karsten

Similar Messages

  • How to view photos on Web Gallery?

    So, on TV I go to Photo> .Mac>Web Gallery>then I type the web gallery web address (not easy with the remote)
    I tried a few times, I get a message saying that Tv can't find it. Same web gallery works fine on my Mac.
    Any suggestions?
    Thanks,
    F

    Props for figuring that one out. For those who stumble on this post -- use the .mac user name without "@mac.com" -- just the user name itself.
    Thanks

  • Only source view, no layout view with PS web gallery.

    I created a web photo gallery using CS3... When i view the pages in GL CS2 from the gallery, it only shows source code, no layout view.
    Normally I wouldn't care, however, I have to add links to the jpgs.
    Is there a way to fix this so I can work with it?
    thanks for your help
    g

    hmmm. as I uploaded to provide a link the pages are not viewable in a browser.
    could it be the # sign in the URL?
    http://www.njrainbowdirectory.com/2008RBD-2/pages/Web%20Rainbow%20Directory#0001.html

  • Default view in Web Gallery?

    Is there any way to set the default view in a web gallery? For instance, when someone goes to the site, can you have it default to come up in "carousel view"?
    As always, thanks in advance.

    I don't think that there is any option to set the default view in the web album. If anyone has found an option to do this, then I will like to know as well.
    Quite a lot of the settings in web album seams to be "hard coded" and only a few settings are available for users to control.
    Karsten

  • Problem uploading photo's to web gallery

    For some reason I am no longer able to upload photo's to my web gallery. I have the web gallery set up to allow upload by email. I am getting an error on my iPhone that says "Your Web Gallery has no shared albums publish an album using iPhoto '08 and select allow photo uploading by email"
    I have restored the iPhone and it is still not working any idea?

    Are you able to upload photos from another computer (not your main one) or do you get the same error?
    All the control for Web Gallery is in iPhoto. Verify your settings per this article:
    http://docs.info.apple.com/article.html?path=Dotmac/WebGallery/en/psh359.html

  • PDF as default selection for Select printing cotrol (for Web)

    Hi
    Can someone point me to righ direction? What we are trying to do is, in Infoview, set PDF as default selection for "Select printing Control (for Web)", so that each user does not have to do this in preferences in infoview.
    Is it possible to do so? If yes, how?
    Thank you
    Regards
    IMS

    Take a look for a .vbs sample that synchs the ADMINISTRATOR preferences to all users on the BOE platform.
    You can schedule this as a PROGRAM OBJECT in InfoView so that it runs on a regular schedule to apply the change to new users.

  • Possible to upload only Edited images to existing web gallery

    I have a couple of large galleries and after I upload the whole thing I see a couple of edits I need to make.
    How can I upload only selected images with the Web Gallery (I still want my index page to have ALL of the ones in the collection, i just want the updated ones to be reuploaded).
    Rob.

    Thanks for the reply, although I don't like the answer!
    I have a Zenfolio account and an open source Gallery, maybe I will continue using those (using Export Plugins) although I like the Flash galleries (third party) for LightRoom.
    Thanks,
    Rob.

  • Web gallery default view

    The default view upon open a web gallery is "Grid". I'd like to change it to "Mosaic". Can this be done?

    No. That's controlled by server side software.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Fonts are not diplayed correctly in the Crystal Report Viewer control

    Post Author: Farid
    CA Forum: General
    Hello,
    I have designed a report in the Crystal Reports XI Designer (version 11.5.3.417) using the default printer. When I view it through the preview mode of the Designer, fonts are displayed like expected using the default printer driver.
    Now, I view this same report at run time in the Crystal Report Viewer control on the same computer with the same default printer. Fonts appear then differently they were in the preview mode : sizes are differents and some texts are truncated. It seems that the default printer driver are not used.
    Can anybody tell me if this behaviour is normal ? If it is the case how should I do to display a report in the Report Viewer using the default printer driver like I have specified it in the Designer.

    Post Author: V361
    CA Forum: General
    You may want to select the "no Printer" option instead, this will force CR to use a higher resolution.  Look in page setup, printer options.

  • Incorrect font display in pdf document(web view)

    Adobe helpers,
    I am encountering a  very peculiar problem with incorrect display of fonts in pdf documents when viewed in a web browser. Briefly, the problem typically affects  the first page of a pdf document, the font being displayed as an unidentified mix of large and very small, skinny type.  Other pages may or may not be affected, and if one back-clicks to the previous page the text often displays the correct font, so the problem is in some (but not all) cases non-persistent.  The problem however is resolved completely if I uncheck the 'display pdf in browser' option  under edit>preferences in adobe reader. Fonts I use include Arial, Cambria, Franklin Gothic Book, and Garamond; as straight-up pdfs, the documents look fine. FYI, I have Adobe reader X 10.0.1 (Win 7) and 9.0 (Win XP sp3) installed on two different machines. Firefox 3.6 and IE9 are equally at fault. FWIW, all the pdf documents begin life as MS Word or Publisher 2010 documents, which are converted to pdf within these applications before publishing to web.   Since I can't control how people choose to view web pdfs, I'm concerned that display of the prone documents is impaired when viewed in a web browser.
    Not sure if this is a reader, browser, or distiller problem but this seems a logical place to start looking for answers. Any thoughts?
    Thanks!

    I've also had problems printing with Reader X.
    When printing an attachment from an email in Outlook, if I don't open the attachment first, sometimes it doesn't print correctly as everything shows with the following number or letter. Example 12345 will print as "23456" and invoice will show as "jowpjdf". Even if I open the attachment, sometimes it will print the first page ok, but the next pages will "mppl mjlf uijt".
    Never had this problem with previous versions.

  • Web gallery control not visible

    HI
    <br />
    <br />Viewing through the downloadable resources for the Flash Web Gallery templates I saw that there is the possibility of having Play/Stop/Forward/Backward/...-Controls in the lower right corner of the Flash Gallery. How can I make them visible, when I create a webgallery, they are not there when I create one. I thought it should be in the galleryconfig.xml the option
    <br />
    <var symboltype="boolean" name="showController" value="true" /></var>
    <br />, but this does not work for me.

    One more Question: In the downloadable templates there is Web Gallery 3: In the Samplefile the thumbnails are all rotated a litte, how is that done?

  • SSRS web based report viewer control rendering issues - text getting clipped chopped off

    Hi,
    I am using web based SSRS report viewer control to display SSRS reports in browsers like Chrome, FF, IE, Safari etc. My issue is some text is getting chopped off (clipped) in all cells of some reports. I investigated on my end by analyzing generated HTML
    and I could see a problem in the HTML that report viewer control is generating. But I am afraid to apply any HTML or Javascript hacks at the moment considering we have hundreds of reports.
    You can see in above image how text got chopped off. The problem in HTML (given below) is the text has been wrapped in a div tag with a fixed height. If I remove the height and also padding on parent TD, the text appears properly.
    <td class="A23dfe7c5f99245f2a0db522a22a6035597c" style="HEIGHT:5.00mm;background-color:#d3d3d3;"><div style="HEIGHT:3.24mm;overflow:hidden;"><table lang="en-US" cellspacing="0"
    cellpadding="0" border="0" class="Pd9776e5f7eaf4df696265b8b49d1da39_1_r17"><tbody><tr><td class="A23dfe7c5f99245f2a0db522a22a6035597" style="word-wrap:break-word;white-space:pre-wrap;">MyType11</td></tr></tbody></table></div></td>
    Please let me know if you have faced a similar scenario before.
    Here is link to stackoverflow thread -
    Stackoverflow thread
    Regards
    Murtaza

    Hi Murtaza,
    According to your description, when you display the report with Report Viewer control, the data within the text is cutoff.
    Based on my research, the issue could cause by that Arial Unicode MS font hasn’t been installed on the server where Reporting Services run. Besides, when we use ReportViewer control to render report, we’d  better set
    AsyncRendering="true" in the Report Viewer control. Also please run the IE with compatibility mode. For more information, please refer to similar threads below:
    Data in column getting cut-off in report viewer control
    SSRS Rendering Issues
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • File name font (web gallery output)

    I am using CS4 with adobe bridge.  I have created some web galleries and have selected the option to show the file name.  This shows up just below the picture in the gallery.  The problem is the font is too light to show up against my chosen background font.  I am wondering how to change the font color of this file name for the output web gallery.  If anyone knows how to do this, I would greatly appreciate it!!!  Thanks!

    Hi,
    You can change the font colour in the Output Panel, under Color Palette (the order it appears and the options it shows depends on the template you are using). Simply double click the colour swatch sqaure to open up the colour picker and choose a new colour.
    See attached screenshot if you are unsure where to look..
    Regards..

  • Crystal Reports Viewer Control  - Visual Studio 2008 WEB Application

    My question is this:  Has ANYONE on this planet been able to get the ASP .NET CR Viewer control to actually work?
    Why does this editor NOT recognize End-of-line or CR characters or any whitespace??
    I have developed a Crystal Reports "Viewer" web application in VS2008 using C#.
    It's a simple app, in that it's a single page with a treeview control (containing the grouped names of the reports to which the user has access) and the CR Viewer control.
    The report files live on a network share, and permissions to them is controlled via a SQL Server database, which, for each report, stores the UserID and Logion for the oracle database, as well as any required parameter values.
    The reports themselves are all hititng an Oracle 10g database.
    I managed to do this in a Windows desktop applcation using Visual Studio 2005 and VB .net, but now, upon trying to make this a web application in VS2008, I have completely failed. The application works when run locally, but when deployed to the web server, I experience database login prompts when I should not, (the dreaded "Report requires further information" message) even thought the setdatabaselogin has already been set. I have tried saving the reportdocument in viewstate and re-assigning the viewer Datasource property to it, that also fails. However, it only does it on some reports, and not others. (admittedly, the reports may have been created using different CR versions)
    The viewer also displays data it should not be displaying when I attempt to scroll, when I do manage to get a report to run.
    I am setting parameters dynamically at run time, whose values are stored in the SQL database.
    Code Sample:
    protected void ShowReport(int ReportID)
            SQLDataPortal2005.Common sql = new SQLDataPortal2005.Common();
            Hashtable outParms = new Hashtable();
            string sAccess;
            IDataReader dr;
            CrystalDecisions.CrystalReports.Engine.ReportDocument rptDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
            System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
            sAccess = p.Identity.Name;
            int j = 0;
            int i = -1;
            if (!IsAdmin())
                sql.ExecNonQuery("CrystalReports", outParms, "proc_CRM_Check_Permissions", sAccess, Convert.ToInt32(TreeView1.SelectedNode.Value));
                if (outParms["@Allow"].ToString() != "True")
                   Response.Redirect("ErrorPage.aspx");  // redirect to  error page
            string sPath = System.Configuration.ConfigurationManager.AppSettings["WareHouse"].ToString();
            sPath = sPath + TreeView1.SelectedNode.Text.Trim() + ".rpt";      
            rptDocument.Load(sPath);
            dr = sql.GetDataReader("CrystalReports", "proc_CRM_Get_Report", Convert.ToInt32(TreeView1.SelectedNode.Value));
            while (dr.Read() == true)
                j += 1;
                if (j < 2)
                    rptDocument.SetDatabaseLogon(dr["DB_Login"].ToString(), dr["DB_Pwd"].ToString(), "PLAW", "LAWDB", true);
                    pList = dr["ParmList"].ToString().Split(',');
            dr.Close();
            dr.Dispose();
            if (pList.Length > 0 && pList[0].ToString().Trim() != "")
                foreach (CrystalDecisions.Shared.ParameterField x in rptDocument.ParameterFields)
                    i++;
                    switch (x.ParameterValueType)
                        case CrystalDecisions.Shared.ParameterValueKind.BooleanParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToBoolean(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.CurrencyParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDouble(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.DateTimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.NumberParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToInt32(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.StringParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToString(pList<i>));
                            break;
                        case CrystalDecisions.Shared.ParameterValueKind.TimeParameter:
                            rptDocument.SetParameterValue(x.Name, Convert.ToDateTime(pList<i>));
                            break;
            Session["CReport"] = rptDocument;
            CRV1.ReportSource = rptDocument;
            CRV1.DisplayGroupTree = false;
            CRV1.HasRefreshButton = true;
            CRV1.ShowFirstPage();
    Is there a better/different way of accomplishing this very simply process? All I need this application to do is to view a report, while setting it's parmeters (if required) dynamically at run time. I don't EVER want the user to be prompted for DB LOGIN INFO.
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:14 PM
    Edited by: RichardK on May 10, 2010 4:16 PM
    Edited by: RichardK on May 10, 2010 4:18 PM
    Edited by: RichardK on May 10, 2010 4:22 PM
    Edited by: RichardK on May 10, 2010 4:23 PM

    To answer you question; Yes, I suspect that most of the users in this community have managed to successfully create web apps. And this is the tiniest of sampling of the developers out there...
    A few suggestions;
    1) Keep the posts to under 1200 characters. Otherwise, the formatting is lost which makes it difficult to read.
    2) Try out a few sample apps from here:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    Suggest; csharp_web_simplelogonengine.zip, csharp_web_simplelogonviewer.zip and csharp_web_subreport_logon.zip.
    3) Start simple; one table, one field, no subreports. Hard code the database logon parameters. Convince your self that this does work. Increase the complexity - add fields, tables, subreports. Do not mix connection methods (e.g.; if ODBC for main, than ODBC for sub is a good idea, though not a requirement).
    4) See the article [Troubleshooting Guide to Database Connectivity Issues with Crystal Reports in Visual Studio .NET Applications|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0225775-88c4-2c10-bd80-8298769293de].
    5) See  [this|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/d05b3bb7-0f28-2c10-4ea3-84dbdc4e414e?quicklink=index&overridelayout=true] article.
    6) Consider creating a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Change the fonts in Web Gallery/Journal?

    Is it possible to change the font in a web gallery or web journal and if so, how?
    I cannot find anything in the documentation, but find it unbelievable that this would not be possible in Aperture.
    Sol

    no, i cant figure out search either ...
    what you need to edit is under ...
    /Applications/Aperture/Contents/Resources/WebThemes/ (right click on Aperture - Show Package Contents)
    pick the theme you want to edit ... choose the language then under assets is the css folder ...
    i believe that the global.css holds the text family ...
    if you arent familiar with css google "w3c schools css" ...
    you will want to edit the font-familty attribute with whatever font you want ...
    i recommend doing this to a copy of the webthem folder ... and rename it something ...

Maybe you are looking for

  • Library Capacity Question

    I know that my nano only holds about 500 songs... what i'm wondering is why cant I, if there is a way, have more than 500 songs in my library without my ipod choosing to select 500 to put on my ipod... To clarify this confusing issue cant I essential

  • How do I embed a YouTube Video in Keynote 6.5?

    Hi!  Used to be that we could embed a link into Keynote to play during the slideshow; I'm not seeing how to do that now. Help! Please!  It looks like the Keynote just wants the videos to live on board the computer, you just click Media and bring it i

  • Appleworks 6 spell checker (spellchecker) window

    Hi everyone, Pages is ok (if you believe that all of your word processing functions should be sliced into tiny pieces of spreadsheet, documents, etc, sorry, ranting)... but I like Appleworks. So I imported Appleworks 6 over from my previous Macbook t

  • Limit the number of executions

    Hello, As we all know, it is possible to test multiple instances at the same time using one sequence file.  However, I do not want this, and want to disable this feature. So only one test can be run at the same time. Does anyone knows how to do this?

  • Where do I find my license number on Photoshop CS6?

    where do I find my license number on Photoshop CS6?