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

Geon bit master 4.3 font fix #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions GeonBit.UI/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -226,27 +226,6 @@
/processorParam:TextureFormat=Color
/build:Example/warrior_skin.png

#begin Fonts/AnonymousPro-Bold.ttf
/copy:Fonts/AnonymousPro-Bold.ttf

#begin Fonts/AnonymousPro-Italic.ttf
/copy:Fonts/AnonymousPro-Italic.ttf

#begin Fonts/AnonymousPro-Regular.ttf
/copy:Fonts/AnonymousPro-Regular.ttf

#begin Fonts/Bitstream Vera Sans Mono Bold Oblique.ttf
/copy:Fonts/Bitstream Vera Sans Mono Bold Oblique.ttf

#begin Fonts/Bitstream Vera Sans Mono Bold.ttf
/copy:Fonts/Bitstream Vera Sans Mono Bold.ttf

#begin Fonts/Bitstream Vera Sans Mono Oblique.ttf
/copy:Fonts/Bitstream Vera Sans Mono Oblique.ttf

#begin Fonts/Bitstream Vera Sans Mono Roman.ttf
/copy:Fonts/Bitstream Vera Sans Mono Roman.ttf

#begin GeonBit.UI/Themes/editor/effects/disabled.fx
/importer:EffectImporter
/processor:EffectProcessor
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Bold</FontName>
<FontName>Bitstream Vera Sans Mono Bold.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Oblique</FontName>
<FontName>Bitstream Vera Sans Mono Oblique.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Roman</FontName>
<FontName>Bitstream Vera Sans Mono Roman.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Bold</FontName>
<FontName>Bitstream Vera Sans Mono Bold.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Oblique</FontName>
<FontName>Bitstream Vera Sans Mono Oblique.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>Bitstream Vera Sans Mono Roman</FontName>
<FontName>Bitstream Vera Sans Mono Roman.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>AnonymousPro-Bold</FontName>
<FontName>AnonymousPro-Bold.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>AnonymousPro-Italic</FontName>
<FontName>AnonymousPro-Italic.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ with.
<!--
Modify this string to change the font that will be imported.
-->
<FontName>AnonymousPro-Regular</FontName>
<FontName>AnonymousPro-Regular.ttf</FontName>

<!--
Size is a float value, measured in points. Modify this value to change
Expand Down
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ To save time keep in mind that the content manager is just a text-based file, so

That's it! Just few things to remember:

- If you don't have the default themes fonts installed, you need to install the fonts from ```Content/Fonts/``` on your computer.
- If your development environment is on Linux, there are few more steps to follow: [Installing on Linux](#extra-steps-for-linux).


Expand All @@ -118,16 +117,14 @@ Manually installing GeonBit.UI might actually be easier than using the NuGet (bu

1. **Copy source project:** Copy the entire project from [GeonBit.UI/GeonBit.UI/](https://github.com/RonenNess/GeonBit.UI/tree/master/GeonBit.UI) into your own solution, including the content files and source.
2. **Build project:** Make sure project build successfully.
3. **Install fonts:** You might need to install some fonts that GeonBit.UI uses and don't come by default in windows / linux. To do so, go to the ```GeonBit.UI/Content/Fonts``` folder and install all the fonts there (they are all free to use including for commercial purposes).
4. **Add reference to your project:** Add a reference from your main project the GeonBit.UI. This should be enough to start using it (this is how the [GeonBit.UI.Examples](https://github.com/RonenNess/GeonBit.UI/tree/master/GeonBit.UI.Examples) project works, so you can check it out).
3. **Add reference to your project:** Add a reference from your main project the GeonBit.UI. This should be enough to start using it (this is how the [GeonBit.UI.Examples](https://github.com/RonenNess/GeonBit.UI/tree/master/GeonBit.UI.Examples) project works, so you can check it out).


## Extra steps for Linux

There are few more things to do if you use Linux:

1. After installing the fonts from ```GeonBit.UI.Examples/Content/Fonts/```, you also need to copy the font files into the folder where the spritefont files reside (e.g. ```Content/GeonBit.UI/themes/<team-name>/fonts/```).
2. Since at this time MonoGame can't build effects on Linux, you need to use a pre-compiled effects. Take the built effects from ```Content/BuiltEffects/``` and put them instead of the ```.fx``` files of your theme (e.g. ```Content/GeonBit.UI/themes/<team-name>/effects/```). Also change their 'Build Action' from 'Build' to 'Copy'.
1. Since at this time MonoGame can't build effects on Linux, you need to use a pre-compiled effects. Take the built effects from ```Content/BuiltEffects/``` and put them instead of the ```.fx``` files of your theme (e.g. ```Content/GeonBit.UI/themes/<team-name>/effects/```). Also change their 'Build Action' from 'Build' to 'Copy'.


# Using GeonBit.UI
Expand Down Expand Up @@ -1557,12 +1554,6 @@ Contain required effects for the UI theme.
- silhouette.fx: effect to use to draw entities as colored silhouette (used to generate shadows).
- disabled.fx: effect to draw disabled entities (default implementation is in black and white).

### fonts/

Contain the SpriteFonts to use for paragraphs and texts. The fonts you use must be installed on your system when compiling them.

Note: GeonBit.UI is built to use [monospace fonts](https://en.wikipedia.org/wiki/Monospaced_font). Using fonts that are not monospace may results in unexpected behavior and broken entities.

### styles/

XML files with default styling for all entities. There are 3 files per entity type, for default state, mouse hover, and mouse down. To see values example and extra info, check out ```example.xml```.
Expand Down