Page 1 of 1 (5 items)
This post has 4 Replies | 1 Follower

Posts 1
jef nolan | Forum Activity | Posted: Fri, Mar 19 2010 11:30 AM

How do I set preferences in Logos 3.0, for example, FONT?

Posts 270
Stein Dahl | Forum Activity | Replied: Fri, Mar 19 2010 12:26 PM

jef nolan:

How do I set preferences in Logos 3.0, for example, FONT?

I don't think that you can actually choose whatever font you want.  You can, however, choose the basic "type" of font. 

You can choose to have everything displayed in a "sans serif" font, I believe it's Arial.  Or you can have everything displayed in the default "serif" font, which I believe is Times New Roman, or something similar. 

As far as setting other preferences, go HERE to access the Tutorial Videos for Logos 3.  There you'll find a bunch of videos explaining how to use and set up the program.  You should see one that is called Customizing Your New Digital Library.  There is a lot of initial, behind the scenes setup shown in this video.  But it helps you get things setup in a very useful way. 

Also, there are some L3 videos by Mark Barnes HERE .  These are helpful videos with ideas for setting up workspaces and setting up and using Parallel Resources.  Logos is a pretty complicated piece of software and takes some time to learn to set up and use. 

Remember: The more things a piece of software can do, the more complicated it will be.  But if you watch all of the videos you will learn how to use it effectively and you'll be suprised at how many things it's actually capable of doing.  It's well worth the time and effort to learn.

Posts 361
Stephen Miller | Forum Activity | Replied: Sun, Mar 21 2010 4:59 PM

Jef,

The good news is that you can choose whatever font you like in Logos 3.

However, it is not straightforward .... depending on your computer skills and determination.

 

1. You need to find the file ResourceSettings.lbxprf. Either use the search function or depending on your version of Windows it might be in the directory Users/YourName/AppData/Roaming/Libronix LDS/Library/Preferences

 

2. This is a text file and can simply be changed in NotePad.

3. The lines that need to be changed are

<value name="Serif">Syndor ITC Book</value>
        <value name="StandardFontFamily">Serif</value>

4. Edit "Syndor ITC Book" to whatever font you want .... you need to get the name right.

 

Another way of doing this is to run a script in Logos 3.

If you want to do this you will need to prepare a script. I suggest you use my script and change it to suit the fonts you want to use.

This is the script ....

var strFontFamily=Application.UserPreferences("LDLS/ResourceSettings").GetValue("Strings","StandardFontFamily");
strFontFamily="Serif";
Application.UserPreferences("LDLS/ResourceSettings").SetValue("Strings","StandardFontFamily",strFontFamily);

var strFont=
Application.UserPreferences("LDLS/ResourceSettings").GetValue("Strings","Serif");

if(strFont=="Arial")
strFont="Cambria";

else
if(strFont=="Cambria")
strFont="Calibri";

else
if(strFont=="Calibri")
strFont="Corbel";

else
if(strFont=="Corbel")
strFont="Segoe UI";

else
if(strFont=="Segoe UI")
strFont="Syndor OS ITC TT";

else
if(strFont=="Syndor OS ITC TT")
strFont="Candara";

else
if(strFont=="Candara")
strFont="Constantia";

else
strFont="Arial";

Application.UserPreferences("LDLS/ResourceSettings").SetValue("Strings","Serif",strFont);


var strTitle = Application.ActionCommandBars.ActionControl.Caption.replace(/&(.)/g, "$1");
Application.ScriptUtil.Windows.MessageBox(strFont, strTitle);

 

Copy/paste that script into Notepad and change the fonts .... note how each font appears in the cycle. You can have more or less fonts, just keep the cycle. The script chooses one font at a time, the next font in the cycle.

Once the script has been changed, keep Notepad open and open Logos 3.

1. In Logos 3 go to Tools/Customise and select an open toolbar (one with a tick). Select Modify.

2. You are going to add a script. In left hand panel Select Special/Run Script Code. Add

3. In the right hand panel choose RunScriptCode ... Details.

4.In the Script Code box you are going to add the script that you have saved in NotePad above. Copy and Paste the script into the Script Box.

5. Choose an image if you like and save the script.

 

By default your new script will appear at the right hand end of the ToolBar.

 

Hope you can follow all this and have success. If you don't please ask for more (correct?) information.

 

Stephen Miller

Sydney, Asutralia

PS there are a few other font scripts available if you are interested.

Posts 270
Stein Dahl | Forum Activity | Replied: Sun, Mar 21 2010 6:53 PM

Cool!  I did not know that.

Works pretty good. 

I would be interested in any other font scripts.  Where can I find them?

Thanks again

Posts 361
Stephen Miller | Forum Activity | Replied: Sun, Mar 21 2010 8:14 PM

Stein,

 

You have worked fast so I guess you got the general gist of how to install scripts.

I give the following scripts without all the explanations.

 

1. A script to toggle the font size ...

var objWindow = Application.ActiveWindow;

if ( objWindow != null )
{
    if ( objWindow.Type == "resource" )
    {
        var objView = objWindow.View;

        if ( objView && objView.IsOpen() )
        {
            var objDisplayPane = objView.Panes("display");

            if ( objDisplayPane )
            {
                var strZoom = objDisplayPane.Control.Zoom;

                if ( strZoom == "auto" || strZoom == "100%" )
                    strZoom = "120%";
                else
                    strZoom = "auto";

                objDisplayPane.Control.Zoom = strZoom;
            }
        }
    }
}

 

2. A script to loop font size

var objWindow = Application.ActiveWindow;

if ( objWindow != null )
{
    if ( objWindow.Type == "resource" )
    {
        var objView = objWindow.View;

        if ( objView && objView.IsOpen() )
        {
            var objDisplayPane = objView.Panes("display");

            if ( objDisplayPane )
            {
                var strZoom = objDisplayPane.Control.Zoom;

                if ( strZoom == "100%" )
                    strZoom = "120%";
                else if ( strZoom == "75%")
                    strZoom = "100%";
                else if ( strZoom == "70%")
                    strZoom = "75%";
                else if ( strZoom == "auto")
                    strZoom = "70%";
                else strZoom = "auto";

                objDisplayPane.Control.Zoom = strZoom;
            }
        }
    }
}

 

3. A script to change the Hebrew font

var strHFont=
Application.UserPreferences("LDLS/ResourceSettings").GetValue("Strings","ScriptFont:hebrew");

if(strHFont=="BibliaLS")
strHFont="TITUS Cyberbit Basic";

else
    if(strHFont=="TITUS Cyberbit Basic")
    strHFont="Ezra SIL SR";


    if(strHFont=="Ezra SIL SR")
    strHFont="SBL Hebrew";

else
    if(strHFont=="SBL Hebrew")
    strHFont="Hebraicall";

else
    if(strHFont=="Hebraicall")
    strHFont="Arial";


else
    if(strHFont=="Arial")
    strHFont="BibliaLS";



Application.UserPreferences("LDLS/ResourceSettings").SetValue("Strings","ScriptFont:hebrew",strHFont);

var strTitle = Application.ActionCommandBars.ActionControl.Caption.replace(/&(.)/g, "$1");
Application.ScriptUtil.Windows.MessageBox(strHFont, strTitle);

 

4. A script to change the greek font

var strGFont=
Application.UserPreferences("LDLS/ResourceSettings").GetValue("Strings","ScriptFont:greek");


if(strGFont=="BibliaLS")
strGFont="Graecall";

else
if(strGFont=="Graecall")
strGFont="Gentium";

if(strGFont=="Gentium")
strGFont="GentiumAlt";

else
if(strGFont=="GentiumAlt")
strGFont="Galatia SIL";


if(strGFont=="Galatia SIL")
    strGFont="Arial";

else
if(strGFont=="Arial")
strGFont="BibliaLS";

Application.UserPreferences("LDLS/ResourceSettings").SetValue("Strings","ScriptFont:greek",strGFont);

var strTitle = Application.ActionCommandBars.ActionControl.Caption.replace(/&(.)/g, "$1");
Application.ScriptUtil.Windows.MessageBox(strGFont, strTitle);

 

 

5. Just for you interest this is a script I wrote to flip a resource from one side of the dreen to the other. I use it all the time.

var objWindow = Application.ActiveWindow;
var W = Application.UsableWidth;
objWindow.WindowState = Application.Constants.dlsWindowStateNormal;

if(objWindow.Left==Math.floor(W/2))
objWindow.Left=Math.floor(0);

else
if(objWindow.Left==Math.floor(0))
objWindow.Left=Math.floor(W/2);

else
{
var strMessage = "«This script needs the resource to be on the left or the right»";
var strTitle = Application.ActionCommandBars.ActionControl.Caption.replace(/&(.)/g, "$1");
Application.ScriptUtil.Windows.MessageBox(strMessage, strTitle);
}

 

Any problems just ask

Stephen Miller

Sydney Australia

Page 1 of 1 (5 items) | RSS