Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile Editor "Font Chooser" Does not Display inbuilt fonts correctly #801

Closed
2 of 5 tasks
BlueFinBima opened this issue Jan 31, 2024 · 6 comments
Closed
2 of 5 tasks
Assignees
Labels
bug Something isn't working Delivered Code for this issue is in a generally available Helios Release enhancement New feature or request

Comments

@BlueFinBima
Copy link


Describe the Helios Issue

Profile Editor "Font Chooser" Does not Display inbuilt fonts correctly.

Steps to Reproduce the problem

Steps to reproduce the behaviour:

  1. Go to Profile Editor
  2. Drag out a Label from the toolbox
  3. Click on the Font property
  4. See error

Expected behavior

The inbuilt fonts should appear in the Font Chooser (in readable form)

Screenshots

image

Please complete the following information:

  • Helios Version > 1.6
  • DCS Version N/A
  • BMS Version N/A

The problem happened while using

(place an 'x' between the square brackets for all that apply)

  • Profile Editor
  • Control Center
  • Keypress Receiver
  • Something else (remember to tell us what it is)
@BlueFinBima BlueFinBima added the New Issue Label given to issues which have not yet been triaged label Jan 31, 2024
@BlueFinBima BlueFinBima added bug Something isn't working and removed New Issue Label given to issues which have not yet been triaged labels Jan 31, 2024
@Shaftoe62
Copy link

Also look at:

In the properties window of the (text) components the wrong font name is shown. Always Franklin Gothic but it's not.

image

@Shaftoe62
Copy link

I have another issue related to fonts. I can select the Arial Narrow in the font chooser but it displays as the regular Arial.

I've checked the font in any which way I can and it is good. It came with Windows itself, so...

And it is a regular TrueType, so a really separate font file for each of the family members.

@BlueFinBima
Copy link
Author

BlueFinBima commented Aug 26, 2024

I've been doing a little work in this area, and Private Fonts are not displayed in the Chooser at all. The entries with multiple squares, as far as I can tell are fonts which cannot be properly rendered for some reason (maybe not correct TrueType (?)). Anyway, I am going to scope this issue to the inclusion of Private Fonts in the Font Chooser.
The appearance of 'Franklin Gothic' as the font name is due to the deserialisation of the TextFormat updating the private variable rather than the public version. This too should now be fixed.

BlueFinBima added a commit that referenced this issue Aug 26, 2024
…ser. Added an APN209 font, and changes the RadAlts for the CH47F and the UH60L to use it.

The TextFormat class serialize/deserialize now need to make a call to FontManager to pick up the private font.
@BlueFinBima BlueFinBima self-assigned this Aug 26, 2024
@BlueFinBima BlueFinBima added enhancement New feature or request Awaiting Delivery Fixed and awaiting shipment in a new release labels Aug 26, 2024
@BlueFinBima
Copy link
Author

Arial problem also looks to be an artefact of the way Helios concatenates the family and style and uses it for the FontFamily even though there is a FontStyle property. Adding the word "Narrow" to "Arial" in the FontFamily element of the profile XML has the desired affect. More investigation is needed.

@BlueFinBima
Copy link
Author

Arial problem was nothing to do with my previous comment. Arial problem is due to Helios defaulting the 'stretch' property of font style to Medium. I've removed the default, and implemented stretch property into Helios TextFormat and Font Chooser.

BlueFinBima added a commit that referenced this issue Aug 31, 2024
* Initial Commit for the DCS CH-47F Chinook Interface

* CH-47F MFD controls (autobinding) and corrections to the RadAlt.

* Correct pathing problem for the CH-47F in the in the Helios.Sln file

* Missing Overhead Console indicators added for the Chinook

* Fix problem with the installers not laying down the CH-47F and the A-10C plugins directory.

* CH-47F - lots of interface tidy up following testing. (More to do)

* CH47F CDU artwork added. more interface tweaks, and embedded viewports for the MFD and CDU added along with correct PE Behaviour

* CH-47F Fix for the MFD rockers.  More interface changes.  ICSx knobs now working.  VHF Preset selector also now working.

* CH-47F Interface - Basic functions implemented and tested.  RADALT and FAT calibrated.

* CH-47F Patches added.

* Fix for AH-64D Apache TEDAC viewport have not being "TEDAC" #834
Added CH-47F Patches and Viewport Templates.
Viewport and ViewportTemplate models altered to allow catergory names to be specified, and AV8B, AH64D and a few others have had their categories changed to reduce the number of toolbox folders.

* CH-47F
CDU - full set of buttons
LinearPotentiometerDetentAnimated changes to support the CH-47F Power Levers
RotaryEncoder changes to support two button interface elements.
New variant of the Rotarty Encoder to allow rotation of the image when the in-game encoder moves.
A-10C
Change to ArgId 62 because it had a duplicate name.

* CH-47F - Complete the SFDs and RWR.  Split the CDU's into two.
Make adjustments to the latest changes for the LinearPotentiometerAnimated.

* deletion of the redundant CDU.cs

* Fix to problem where the reversal of swipe direction was not working due to the refactoring in the previous commit.

* Readme Change

* Fix for CH-47F Args 1229-1232 for the VHF Radio display

* CH-47F - Add the M880 Chronometer
More VHF knob adjustments for the displayed values.

* CH-47F - Fix for incorrect viewport name in the Chronometer.

* CH-47F Remove brim from FAT gauge.

* Corrections to Iris configuration creation not working for remote.
Corrections to Iris configuration causing Iris-Server to croak because of missing GlobalImageAdjustment elements being missed.

* Move Hornet Viewport templates to main Toolbox folder

* Add Helios Private fonts to the Font Chooser

* #801 Completion of work to have private fonts appear in the Font Chooser.  Added an APN209 font, and changes the RadAlts for the CH47F and the UH60L to use it.
The TextFormat class serialize/deserialize now need to make a call to FontManager to pick up the private font.

* #801 Implement Stretch for fonts which was defaulting to Medium.

* Add missing Stretch property to the Font Chooser save / restore capability.  #801

* Add a Released trigger to the Potentiometer knob.

* Initial Changes to the DCS monitor setup lua for combined.

* Minor change to the Status Information item for viewports.

* Correction for the wrong syntax used for the "or" operator in the Lua of the Monitor Setup.

* Correcting the CH-47F Switch Covers

* Copyright Date change for the CH-47F interface
@BlueFinBima BlueFinBima added Delivered Code for this issue is in a generally available Helios Release and removed Awaiting Delivery Fixed and awaiting shipment in a new release labels Sep 3, 2024
@BlueFinBima
Copy link
Author

Shipped in 1.6.6100.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Delivered Code for this issue is in a generally available Helios Release enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants