Personal Book Builder: "xxx is not a valid font for use in resources."

Allen Browne
Allen Browne Member Posts: 1,892 ✭✭✭
edited November 20 in English Forum

Hi friends.

I'm creating a commentary on Ephesians, but the PBB complains about whatever font I use: Times New Roman or Arial, or anything.

The compile works, but this is the error log:

[Info] Starting build for PBB:9443e6f8eddd4bb580ac36119aef2e8d
[Info] Converting
[Info] Converting D:\Data\SeekingTheKingdom\Commentaries\Ephesians_KingdomPerspective.docx
[Info] Compiling
[Error] Font '#Libronix User Interface' is not a valid font for use in resources.
[Error] Font 'Georgia' is not a valid font for use in resources.
[Error] Font 'Courier New' is not a valid font for use in resources.
[Error] Font 'Verdana' is not a valid font for use in resources.
[Error] Font 'Symbol' is not a valid font for use in resources.
[Error] Font 'Cambria' is not a valid font for use in resources.
[Info] Discovering
[Info] Complete

Suggestions?

The file is:

https://allenbrowneblog.files.wordpress.com/2020/05/ephesians_kingdomperspective-1.docx 

Tagged:

Comments

  • NB.Mick
    NB.Mick MVP Posts: 15,968

    Actually, Times New Roman should not come in an error message - and doesn't for me - as this is the one Logos wants us to use: it will treat Times New Roman 12 pt as "standard" and convert it into the font you select for resource display in the Logos System Settings.

    Changing the fonts for standard text and headings to Times New Roman, I could reduce the build errors to four fonts. However, it's difficult to wash out fonts from a document - Word doesn't find those and thus can't replace them - but anyway, as you know, those errors are a nuisance more than a functionality issue.

    Have joy in the Lord! Smile

  • Allen Browne
    Allen Browne Member Posts: 1,892 ✭✭✭

    NB.Mick said:

    Actually, Times New Roman should not come in an error message - and doesn't for me - as this is the one Logos wants us to use: it will treat Times New Roman 12 pt as "standard" and convert it into the font you select for resource display in the Logos System Settings.

    Changing the fonts for standard text and headings to Times New Roman, I could reduce the build errors to four fonts. However, it's difficult to wash out fonts from a document - Word doesn't find those and thus can't replace them - but anyway, as you know, those errors are a nuisance more than a functionality issue.

    Thanks for the reply, Nick.
    I guess I'll just ignore the errors then.

  • Mark
    Mark Member Posts: 2,643 ✭✭✭

    I ignore the errors.  I use Times New Roman and yet the errors still claim I am using other fonts (which I am not).  I always thought it must be a bug



  • Allen Browne
    Allen Browne Member Posts: 1,892 ✭✭✭

    Mark said:

    I ignore the errors.  I use Times New Roman and yet the errors still claim I am using other fonts (which I am not).  I always thought it must be a bug

    Thanks, Mark. Good to know I'm not alone.

  • DominicM
    DominicM Member Posts: 2,995 ✭✭✭

    its an error in Word, but here are 2 word macros which may help, I use them first thing after importing my raw text:
    The first resets the whole document to "normal"

    Sub LogosPB_SetWholeTextToNormal()
      Selection.WholeStory
      Selection.Style = ActiveDocument.Styles("Normal")
    End Sub 

    The second resets all the "normal" sections within document to Times New Roman 12, and set to US english

    Sub LogosPB_SetNormalFonttoTNR()
    With ActiveDocument.Styles("Normal")
      .LanguageID = wdEnglishUS
      .Font.Name = "Times New Roman"
      .Font.Size = 12
    End With
    End Sub

    hope these also help reduce your errors

    Never Deprive Anyone of Hope.. It Might Be ALL They Have

  • DominicM
    DominicM Member Posts: 2,995 ✭✭✭

    NB.Mick said:

    Changing the fonts for standard text and headings to Times New Roman, I could reduce the build errors to four fonts. However, it's difficult to wash out fonts from a document - Word doesn't find those and thus can't replace them - but anyway, as you know, those errors are a nuisance more than a functionality issue.

    this may or not be of use, it will highlight turquoise any non-listed fonts in your document, but does not replace them:

    Sub LogosPB_ShowOddFontsinNorm()
    ' Highlight all fonts NOT named in the list

    With ActiveDocument.Styles("Normal")

    myDiffColour = wdTurquoise

    nonHighlight = 5

    ReDim myFont(nonHighlight) As String

    myFont(1) = "Times New Roman"

    ' your greek font here

    myFont(2) = ""

    ' your hebrew font here

    myFont(3) = ""

    ' additional to skip

    myFont(4) = ""

    myFont(5) = ""

    nowColour = Options.DefaultHighlightColorIndex

    Options.DefaultHighlightColorIndex = myDiffColour

    Set rng = ActiveDocument.Content

    rng.Font.Shadow = True

    For i = 1 To nonHighlight

      If myFont(i) > "" Then

        thisFont = myFont(i)

        With Selection.Find

          .ClearFormatting

          .Replacement.ClearFormatting

          .MatchWildcards = False

          .Text = ""

          .Replacement.Text = ""

          .Font.Name = thisFont

          .Wrap = wdFindContinue

          .Replacement.Font.Shadow = False

          .Execute Replace:=wdReplaceAll

        End With

      End If

    Next i

    With Selection.Find

      .ClearFormatting

      .Replacement.ClearFormatting

      .MatchWildcards = False

      .Text = ""

      .Wrap = wdFindContinue

      .Font.Shadow = True

      .Replacement.Font.Shadow = False

      .Replacement.Highlight = True

      .Execute Replace:=wdReplaceAll

    End With

    End With

    Options.DefaultHighlightColorIndex = nowColour

    End Sub

     

    Never Deprive Anyone of Hope.. It Might Be ALL They Have

  • Rick Koelz
    Rick Koelz Member Posts: 41 ✭✭

    THANKS, DominicM.

    All 3 of the macros will help me clean up my PBB work and eliminate lots of frustration. 

    Got any more macro goodies?

    Rick

  • DominicM
    DominicM Member Posts: 2,995 ✭✭✭

    Never Deprive Anyone of Hope.. It Might Be ALL They Have